Hello,
having gone through the instructions at [1], I still have
problems getting an IP6-over-IP4 tunnel running. We're using an
internal, experimental network; currently there are three
machines involved:
juliet: One end of the tunnel, eth0 bound to subnet A4 and A6
respectively (A4: subnet using IPv4, A6: subnet using
IPv6). Default IPv4-router is romeo.
romeo: Other end of the tunnel, eth0 bound to same subnets as
juliet, also eth1 bound to subnet B4 and B6
respectively.
viola: Just a host with eth0 bound to B4 and B6 respectively.
Default router for both, IPv4 and IPv6 is romeo.
When setting up an ordinary IPv4-and-6 network with romeo as the
router between both IPv6-networks everything works fine, i.e. I
can ping viola from juliet and vice versa.
Now I setup the tunnel. For this I remove the default IPv6 router
entry from juliet's configuration and add these lines to my
/etc/network/interfaces file (I'm using Debian unstable):
| iface mytunl inet6 v4tunnel
| # this side of the tunnel has this address, eth0 has
| # a different one
| address 3ffe:ffff:1234:5::1:26
| netmask 64
| # the remote tunnel end's IPv4-address
| endpoint 192.168.200.3
| pre-up ip tunnel del mytunl 2>/dev/null || true
| up ip route add 2002::0/3 via 3ffe:ffff:1234:5::1:23
| up ip tunnel change mytunl ttl 64
| up ip tunnel add mytunl mode sit remote 192.168.200.3
| up ip link set mytunl up
| up ip addr add 3ffe:ffff:1234:5::1:26 dev mytunl
| up ip route add 2000::0/3 via 3ffe:ffff:1234:5::1:23
First of all, this configuration does not work. When doing
`ifup --verbose mytunl', it turns out that the last two
commands are kind of duplicate (the ip `route add 2002::0/3...'
actually adds a route for `2000::0/3', which is just what the
last line would do, also the address had been added by the
automatic magic accoring to the `address' entry in the second
line).
This leads me to believe that the last two lines should not be
there at all. Did I misread [1] or was the information there
incorrect?
Having removed these two lines, I can bring the thunnel up. On
the other side I use the same configuration, only setting the
IP addresses into opposite direction.
I can see the tunnel using `ifconfig', I can see the routes
using `ip -6 route', but when I do either of those commands
below from juliet, I get `destination unreachable':
ping6 -I eth0 ip6-viola
ping6 -I mytunl ip6-viola
However `ping6 -I mytunl ip6-romeo' works.
I then tried out the second variant, setting the default route
not to the remote tunnel end's IPv6-address, but the
IPv4-address instead:
| up ip route add 2000::0/3 via ::192.168.200.3
This does not change anything.
Any clue what goes wrong?
Cheers,
Martin
[1]
http://people.debian.org/~csmall/ipv6/setup.html
--
Its gone to meet its maker... Its gone to join the choir invisible...
This Parrot is an Ex-Parrot!
-=-=- -=-=-=-=-
Dipl.Ing. Martin "Herbert" Dietze -=-=- University of Buckingham -=-=-