System Administration Guide, Volume 3
[ Previous ][ Fast Back ]Chapter 2. Managing IPv6 Tasks [ Next ]

Configuring IPv6 Over IPv4 Tunnels

This section describes how you configure IPv6 over IPv4 tunnels.

For conceptual descriptions of tunnels, see Solaris Tunneling Interfaces for IPv6 in Chapter 1.

Procedure How to Configure IPv6 Over IPv4 Tunnels

  1. Become superuser.
  2. Create the file /etc/hostname6.ip.tun0 and add entries using the following steps.
    1. Add the tunnel source and tunnel destination addresses.
      tsrc IPv4-source-addr tdst IPv4-destination-addr up
    2. (Optional) Add a logical interface for the source and destination IPv6 addresses.
      addif IPv6-source-address  IPv6-destination-address up

      Omit this step if you want the address autoconfigured for this interface. You do not need to configure link-local addresses for your tunnel because they are automatically configured.

  3. Save and close the file.

  1. Create the file /etc/hostname6.ip.tun1.
  2. Repeat all the previous steps.
  3. Continue creating tunnels tun2, tun3, and so on, as necessary.

When you finish configuring the tunnels, you must reboot.


Note - You must perform the same steps at the other end of the tunnel for bidirectional communication to occur.


If your system is to be configured as a router, you must also configure your router to advertise over tunneling interfaces before rebooting. See How to Configure Your Router to Advertise Over Tunneling Interfaces.

Example--/etc/hostname6.ip.tun0 File

This is an example of a tunnel for which all IPv6 addresses are autoconfigured.
tsrc 129.146.86.138 tdst 192.168.7.19 up

Example--/etc/hostname6.ip.tun1 File

This is an example of a tunnel for which global and site local source and destination addresses are manually configured.
tsrc 129.146.86.138 tdst 192.168.7.19 up
addif fec0::1234:a00:20ff:fe12:528 fec0::5678:a00:20ff:fe12:1234 up
addif 2::1234:a00:20ff:fe12:528 2::5678:a00:20ff:fe12:1234 up

Procedure How to Configure Your Router to Advertise Over Tunneling Interfaces

Do the following steps for each tunnel.

  1. Become superuser.
  2. Edit the file /etc/inet/ndpd.conf and add entries using the following steps.
    1. Enable router advertisement over the tunneling interface.
      if ip.tunn AdvSendAdvertisements 1
    2. Add prefixes as needed.
      prefix interface-address ip.tunn
  3. Close and save the file.
  4. Reboot.

[ Previous ][ Home ][ Next ]
Monitoring IPv6[ Up ]Displaying IPv6 Name Service Information