sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next

Tasks for Configuring Tunnels for IPv6 Support (Task Map)

Task

Description

For Instructions

Manually configure IPv6 over IPv4 tunnels.

Manually creates an IPv6 tunnel over a IPv4 network, a solution for reaching remote IPv6 networks within a larger, mostly IPv4 enterprise network.

How to Manually Configure IPv6 Over IPv4 Tunnels 

Manually configure IPv6 over IPv6 tunnels.

Manually configures an IPv6 tunnel over an IPv6 network, typically used within a large enterprise network.

How to Manually Configure IPv6 Over IPv6 Tunnels 

Manually configure IPv4 over IPv6 tunnels.

Manually configures an IPv4 tunnel over an IPv6 network, useful for large networks with both IPv4 and IPv6 networks.

How to Configure IPv4 Over IPv6 Tunnels 

Automatically configure IPv6 over IPv4 tunnels (6to4 tunnels).

Create an automatic, 6to4 tunnel, a solution for reaching an external IPv6 site over the Internet.

How to Configure a 6to4 Tunnel 

Configure a tunnel between a 6to4 router and a 6to4 relay router.

Enables a tunnel to a 6to4 relay router by using the 6to4relay command.

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

Configuring Tunnels for IPv6 Support

IPv6 networks are often isolated entities within the larger IPv4 world. Nodes on your IPv6 network might need to communicate with nodes on isolated IPv6 networks, either within your enterprise or remotely. Typically, you configure a tunnel between IPv6 routers, although IPv6 hosts can also function as tunnel endpoints. For tunnel planning information, refer to Planning for Tunnels in the Network Topology.

You can set up automatically or manually configured tunnels for the IPv6 network. The Solaris IPv6 implementation supports the following types of tunnel encapsulation:

  • IPv6 over IPv4 tunnels

  • IPv6 over IPv6 tunnels

  • IPv4 over IPv6 tunnels

  • 6to4 tunnels

For conceptual descriptions of tunnels, see IPv6 Tunnels.

ProcedureHow to Manually Configure IPv6 Over IPv4 Tunnels

This procedure describes how to set up a tunnel from an IPv6 node to a remote IPv6 node over an IPv4 network.

  1. Log in to the local tunnel endpoint as Primary Administrator or as superuser.

    The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, "Working With the Solaris Management Console (Tasks)," in System Administration Guide: Basic Administration.

  2. Create the /etc/hostname6.ip.tunn file.

    where n represents the tunnel number, beginning at zero for the first tunnel. Then, add entries by following these substeps:

    1. Add the tunnel source address and the tunnel destination address.

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

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

      addif IPv6-source-address  IPv6-destination-address 

      Omit this substep if you want the address autoconfigured for this interface. You do not need to configure link-local addresses for your tunnel.

  3. Reboot the system.

  4. Repeat this task on the opposite endpoint of the tunnel.

Example 7-7   Entry in the /etc/hostname6.ip.tun File for a Manual, IPv6 Over IPv4 Tunnel

This sample /etc/hostname6.ip.tun file shows a tunnel for which global source addresses and global destination addresses are manually configured.

tsrc 192.168.8.20 tdst 192.168.7.19 up
addif 2001:db8:3c4d:8::fe12:528 2001:db8:3c4d:7:a00:20ff:fe12:1234

ProcedureHow to Manually Configure IPv6 Over IPv6 Tunnels

This procedure describes how to set up a tunnel from an IPv6 node to a remote IPv6 node over an IPv6 network.

  1. Log in to the local tunnel endpoint as Primary Administrator or as superuser.

    The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, "Working With the Solaris Management Console (Tasks)," in System Administration Guide: Basic Administration.

  2. Create the /etc/hostname6.ip6.tun n file.

    Use the values 0, 1, 2, and so on, for n. Then, add entries by following these substeps.

    1. Add the tunnel source address and 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 IPv6 address and destination IPv6 address.

      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.

  3. Reboot the system.

  4. Repeat this procedure at the opposite endpoint of the tunnel.

Example 7-8   Entry in the /etc/hostname6.ip6.tun File for an IPv6 Over IPv6 Tunnel

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

tsrc 2001:db8:3c4d:22:20ff:0:fe72:668c tdst 2001:db8:3c4d:103:a00:20ff:fe9b:a1c3
fe80::4 fe80::61 up

ProcedureHow to Configure IPv4 Over IPv6 Tunnels

This procedure explains how to configure a tunnel between two IPv4 hosts over an IPv6 network. You would use this procedure if your corporate network is heterogeneous, with IPv6 subnets that separate IPv4 subnets.

  1. Log in to the local IPv4 tunnel endpoint as Primary Administrator or as superuser.

    The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, "Working With the Solaris Management Console (Tasks)," in System Administration Guide: Basic Administration.

  2. Create the /etc/hostname.ip6.tunn file.

    Use the values 0, 1, 2, and so on, for n. Then, add entries by following these steps:

    1. Add the tunnel source address and the tunnel destination address.

      tsrc IPv6-source-address tdst IPv6-destination-address

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

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

  3. Reboot the local host.

  4. Repeat this procedure at the opposite endpoint of the tunnel.

Example 7-9   Entry in the /etc/hostname6.ip6.tun for an IPv4 Over IPv6 Tunnel

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

tsrc 2001:db8:3c4d:114:a00:20ff:fe72:668c tdst 2001:db8:3c4d:103:a00:20ff:fe9b:a1c3
10.0.0.4 10.0.0.61 up

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.