This section describes how you configure IP in IP tunnels. The following types of encapsulation are allowed:
IPv4 over IPv4 tunnels
IPv6 over IPv4 tunnels
IPv6 over IPv6 tunnels
IPv4 over IPv6 tunnels
For conceptual descriptions of tunnels, see Solaris Tunneling Interfaces for IPv6 and Tunneling Mechanism.
Task |
Description |
For Instructions, Go to ... |
---|---|---|
Configuring IPv6 over IPv4 tunnels |
Shows the entries required for the hostname6.ip.tunn file. | |
Configuring IPv6 over IPv6 tunnels |
Shows the entries required for the hostname6.ip6.tunn file. | |
Configuring IPv4 over IPv6 tunnels |
Shows the entries required for the hostname.ip6.tunn file. | |
Configuring IPv4 over IPv4 tunnels |
Shows the entries required for the hostname.ip.tunn file. | |
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 |
Become superuser.
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.
Add the tunnel source addresses. Then, add the tunnel destination addresses.
tsrc IPv4-source-addr tdst IPv4-destination-addr up |
(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.
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.
This example shows a tunnel for which all IPv6 addresses are autoconfigured.
tsrc 129.146.86.138 tdst 192.168.7.19 up |
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 |
Become Superuser.
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.
Add the tunnel source address. Then, add the tunnel destination address.
tsrc IPv6-source-address tdst IPv6-destination-address up |
(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.
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.
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 up |
Become Superuser.
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.
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 |
(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.
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.
This example shows the entry for an IPv4 over IPv6 tunnel.
tsrc 2000::114:a00:20ff:fe72:668c tdst 2000::103:a00:20ff:fe9b:a1c3 10.0.0.4 10.0.0.61 up |
Become Superuser.
Create the file /etc/hostname.ip.tunn. Use the values 0, 1, 2, and so on, for n. Then, add entries by following these steps.
Add the tunnel source address. Then, add the tunnel destination address.
tsrc IPv4-source-address tdst IPv4-destination-address tunnel-IPv4-source-address tunnel-IPv4-destination-address up |
(Optional) Add a logical interface for the source and destination IPv4 addresses.
addif IPv4-source-address IPv4-destination-address up |
When you finish configuring the tunnels, you must reboot.
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.
This example shows the entry for an IPv4 over IPv4 tunnel.
tsrc 120.46.86.158 tdst 120.46.86.122 10.0.0.4 10.0.0.61 up |
Following these steps for each tunnel.