Host to router

Mithrandir mithrandir@skynet.be
Wed, 10 Jan 2001 13:21:13 +0100


Thank you guys and girls

For the input on host6 over IPv4 network to host6 communication.

Here 's an explanation from www.sun.com. See below:
Also, thank you very much for all your help.

Next problem:
Tunneling from a IPv6/IPv4 host over IPv4 router Through IPv6/IPv4 router
and to IPv6 host.
I already made a configuration similar to the cisco router tunneling.
It does not work.

Here 's the input from sun:

Automatic Tunnels
-----------------

To configure automatic tunnels, you want to configure interface
ip.atun0.  The easiest way to do this is to create the file
/etc/hostname6.ip.atun0, with this contents

tsrc <IPv4 address> up

where <IPv4 address> is an IPv4 address on this system.  At boot time,
Solaris will create ip.atun0 and configure it with a tunnel source
address of <IPv4 address>, and also configure the IPv6 address as
::<IPv4 address>/96.  For example, on the system where I just did this
I have /etc/hostname6.ip.atun0 with this as its contents:

       tsrc 129.153.128.110 up

After booting, I ran "ifconfig ip.atun0 inet6" and saw this:

ip.atun0: flags=2200041<UP,RUNNING,NONUD,IPv6> mtu 1480 index 3
inet tunnel src 129.153.128.110
inet6 ::129.153.128.110/96

If you do this on both IPv6 nodes, you'll have two IPv4-compatible
addresses that you can route through.  For example, let's say you have
nodes A and B.  A's IPv4 address is 10.0.0.1 and B's IPv4 address is
10.0.0.2.  If you set up ip.atun0 on each of these, then A will have
IPv4-compatible address ::10.0.0.1 and B will have address ::10.0.0.2.
A can now route to B via ::10.0.0.2, and B can route to A via
::10.0.0.1.  Remember that if you are using A and B as gateways for
other networks, you'll have to turn on ip6_forwarding using ndd.

Configured Tunnels
------------------

Someone forwarded me a copy of a note that you should have gotten on
6bone@isi.edu.  But to be complete, here's the information.  For
configured tunnels, you need to configure both endpoints with the
information you want.  You'll want to configure ip.tun0 (or ip.tun1,
ip.tun2, etc.) with the tunnel source and destination addresses.
Again, create /etc/hostname6.ip.tun0.  Here's the contents of mine
from one machine whose IP address is 129.153.128.110, tunneling to
129.146.177.26:

     tsrc 129.153.128.110 tdst 129.146.177.26 up

Here's what "ifconfig ip.tun0 inet6" shows after boot:

ip.tun0: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480
index 3
inet tunnel src 129.153.128.110 tunnel dst 129.146.177.26
inet6 fe80::8199:806e/10 --> fe80::8192:b11a

If you want additional IPv6 addresses, an "addif" statement to
/etc/hostname6.ip.tun0, specifying the source and destination
addresses, like this:

addif 2::45 2::46 up

Then after boot we have a new interface ip.tun0:1.  Here's what the
tunnel stuff from "ifconfig -au6" looks like now:

ip.tun0: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480
index 3
inet tunnel src 129.153.128.110 tunnel dst 129.146.177.26
inet6 fe80::8199:806e/10 --> fe80::8192:b11a
ip.tun0:1: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu
1480 index 3
inet6 2::45/128 --> 2::46

Enjoy.

Greeetings
Mithrandir.