Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Previous Previous     Contents     Index     Next Next

Configuring IP in IP Tunnels

This section describes how you manually configure IP in IP tunnels. For information on configuring an automatic 6to4 tunnel, refer to How to Configure a 6to4 Router.

IPv6 supports the following types of tunnel encapsulation:

  • IPv4 over IPv4 tunnels

  • IPv6 over IPv4 tunnels (native IPv6 and 6to4)

  • IPv6 over IPv6 tunnels

  • IPv4 over IPv6 tunnels

  • IPv6 to IPv6 over 6to4 tunnels

  • 6to4 site tunnel to 6to4 relay router to native IPv6 site

For conceptual descriptions of tunnels, see Solaris Tunneling Interfaces for IPv6 and Tunneling Mechanism.

Configuring IP in IP Tunnels Task Map

Table 2-3 Configuring IP in IP Tunnels Task Map

Task

Description

Instructions

Manually configuring IPv6 over IPv4 tunnels

Shows the entries required for the hostname6.ip.tunn file.

How to Configure IPv6 Over IPv4 Tunnels

Automatically configuring IPv6 over IPv4 tunnels (6to4 tunnels)

Shows entries required for the hostname6.ip.6to4tun file.

How to Configure a 6to4 Router

Configuring IPv6 over IPv6 tunnels

Shows the entries required for the hostname6.ip.6.tunn file.

How to Configure IPv6 Over IPv6 Tunnels

Configuring IPv4 over IPv6 tunnels

Shows the entries required for the hostname.ip6.tunn file.

How to Configure IPv4 Over IPv6 Tunnels

Configuring IPv4 over IPv4 tunnels

Shows the entries required for the hostname.ip.tunn file.

How to Configure IPv4 Over IPv4 Tunnels

Configuring a tunnel between a 6to4 router and a 6to4 relay router

Describes how to enable a tunnel to a 6to4 relay router by using the 6to4relay command.

How to Configure a 6to4 Tunnel to a 6to4 Relay Router

Configuring your router to advertise over tunneling interfaces

Shows the entries required for the /etc/inet/ndpd.conf file.

How to Configure Your Router to Advertise Over Tunneling Interfaces

ProcedureHow to Configure IPv6 Over IPv4 Tunnels


Note - The best way to pass IPv6 packets over an IPv4 network is to use an automatic 6to4 tunnel. For instructions for implementing 6to4 routing at your site, refer to How to Configure a 6to4 Router.


  1. Become superuser.

  2. Create the file /etc/hostname6.ip.tunn. Use the values 0, 1, 2, and so on, for n. Then, add entries by following these steps.

    1. Add the tunnel source addresses. Then, add the 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. Link-local addresses are configured automatically.

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--Entry for IPv6 Configuration File to Autoconfigure IPv6 Addresses

This example shows a tunnel for which all IPv6 addresses are autoconfigured.

tsrc 129.146.86.138 tdst 192.168.7.19 up

Example--Entry in the IPv6 Configuration File for Manually Configured Addresses

This example shows a tunnel for which global source and global destination addresses are manually configured. The site-local source and site-local destination addresses are also manually configured.

tsrc 120.46.86.138 tdst 190.68.7.19 up
addif fec0::1234:a00:fe12:528 fec0::5678:a00:20ff:fe12:1234 up
addif 2::1234:a00:fe12:528 2::5678:a00:20ff:fe12:1234 up

ProcedureHow to Configure IPv6 Over IPv6 Tunnels

  1. Become Superuser.

  2. Create the file /etc/hostname6.ip6.tunn. Use the values 0, 1, 2, and so on, for n. Then, add entries by following these steps.

    1. Add the tunnel source address. Then, add the tunnel destination address.

      tsrc IPv6-source-address tdst IPv6-destination-address
      IPv6-packet-source-address IPv6-packet-destination-address 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. Link-local addresses are configured automatically.

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--Entry in the IPv6 Configuration File to Create an IPv6 over IPv6 Tunnel

This example shows the entry for an IPv6 over IPv6 tunnel.

tsrc 2000::114:a00:20ff:fe72:668c tdst 2000::103:a00:20ff:fe9b:a1c3
fe80::4 fe80::61 up

ProcedureHow to Configure IPv4 Over IPv6 Tunnels

  1. Become Superuser.

  2. Create the file /etc/hostname.ip6.tunn. Use the values 0, 1, 2, and so on, for n. Then, add entries by following these steps.

    1. Add the tunnel source address. Then, add the tunnel destination address.

      tsrc IPv6-source-address tdst IPv6-destination-address
      tunnel-IPv4-source-address tunnel-IPv4-destination-address up

    2. (Optional) Add a logical interface for the source and destination IPv6 addresses.

      addif IPv6-source-address  IPv6-destination-address up

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.

Previous Previous     Contents     Index     Next Next