[Aurora-sparc-user] IPv6

Hans Witvliet hwit at a-domani.nl
Tue Apr 3 03:10:46 EDT 2007


Hi list,

to continue my original tests with IPv6, i followed the instructions
from my tunnel brooker (H.E.)

I did:
modprobe ipv6
ip tunnel add sixbone mode sit remote 64.71.128.83 local 82.161.99.204
ttl 255
ip link set sixbone up
ip addr add 2001:470:1F03:E65::2/64 dev sixbone
ip route add ::/0 dev sixbone
ip -f inet6 addr

And from their website i can do a ping6 to either end of the tunnel.
So it seems to work! 
However, when testing locally i can NOT ping6 at all, not even
localhost ::1

My tests:
#!/bin/sh
cat /proc/net/if_inet6

lsmod |grep v6

echo "testing locally loopback"
ping6 ::1 -c 2 -w 1
echo $?
echo "testing my end of the tunnel"
ping6 2001:470:1F03:E65::2 -c 2 -w 1
echo $?
echo "testing remote end of the tunnel"
ping6 2001:470:1F03:E65::1 -c 2 -w 1
echo $?
echo "ip addr show"
ip addr show
echo "route --inet --inet6"
route --inet --inet6
echo "ip6tables -L -n"
ip6tables -L -n

And the (lack of) results:
# ./test_v6.sh
fe800000000000000a0020fffeda3b4a 03 0a 20 80     eth1
fe800000000000000a0020fffeda3b4a 02 0a 20 80     eth0
00000000000000000000000000000001 01 80 10 80       lo
200104701f030e650000000000000002 10 40 00 80  sixbone
200104701f030e650000000000000003 02 40 00 80     eth0
fe800000000000000000000052a163cc 10 80 20 80  sixbone
ipv6                  181944  -1
testing locally loopback
PING ::1(::1) from ::1 : 56 data bytes

--- ::1 ping statistics ---
1 packets transmitted, 0 received, 100% loss, time 0ms

1
testing my end of the tunnel
PING 2001:470:1F03:E65::2(2001:470:1f03:e65::2) from ::1 : 56 data bytes

--- 2001:470:1F03:E65::2 ping statistics ---
1 packets transmitted, 0 received, 100% loss, time 0ms

1
testing remote end of the tunnel
PING 2001:470:1F03:E65::1(2001:470:1f03:e65::1) from
2001:470:1f03:e65::3 : 56 data bytes

--- 2001:470:1F03:E65::1 ping statistics ---
1 packets transmitted, 0 received, 100% loss, time 0ms

1
ip addr show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast
qlen 100
    link/ether 08:00:20:da:3b:4a brd ff:ff:ff:ff:ff:ff
    inet 82.161.99.204/23 brd 82.161.99.255 scope global eth0
    inet6 fe80::a00:20ff:feda:3b4a/10 scope link
    inet6 2001:470:1f03:e65::3/64 scope global
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 08:00:20:da:3b:4a brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/24 brd 192.168.0.255 scope global eth1
    inet6 fe80::a00:20ff:feda:3b4a/10 scope link
10: sit0 at NONE: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
16: sixbone at NONE: <POINTOPOINT,NOARP,UP> mtu 1480 qdisc noqueue
    link/sit 82.161.99.204 peer 64.71.128.83
    inet6 2001:470:1f03:e65::2/64 scope global
    inet6 fe80::52a1:63cc/128 scope link
route --inet --inet6
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     *               255.255.255.0   U     0      0        0
eth1
82.161.98.0     *               255.255.254.0   U     0      0        0
eth0
127.0.0.0       *               255.0.0.0       U     0      0        0
lo
default         bbned-10k-07.ro 0.0.0.0         UG    0      0        0
eth0
Kernel IPv6 routing table
Destination                                 Next Hop
Flags Metric Ref    Use Iface
::1/128                                     ::
U     0      30       1 lo
2001:470:1f03:e65::1/128                    2001:470:1f03:e65::1
UAC   0      4        1 eth0
2001:470:1f03:e65::2/128                    ::
U     0      13       0 lo
2001:470:1f03:e65::3/128                    ::
U     0      19       0 lo
2001:470:1f03:e65::/64                      ::
UA    256    0        0 eth0
2001:470:1f03:e65::/64                      ::
UA    256    0        0 sixbone
fe80::52a1:63cc/128                         ::
U     0      0        0 lo
fe80::a00:20ff:feda:3b4a/128                ::
U     0      0        0 lo
fe80::/10                                   ::
UA    256    0        0 eth0
fe80::/10                                   ::
UA    256    0        0 eth1
fe80::/10                                   ::
UA    256    0        0 sixbone
ff00::/8                                    ::
UA    256    0        0 eth0
ff00::/8                                    ::
UA    256    0        0 eth1
ff00::/8                                    ::
UA    256    0        0 sixbone
::/0                                        ::
U     1024   0        0 sixbone
ip6tables -L -n
ip6tables v1.2.5: can't initialize ip6tables table `filter': Table does
not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root at fw2 bin]#                                             


Any (6) suggestions?
The tunnel is working OK, so the kernel knows about V6...

HtH, Hans

-- 
pgp-id: 926EBB12
pgp-fingerprint: BE97 1CBF FAC4 236C 4A73  F76E EDFC D032 926E BB12
Registered linux user: 75761 (http://counter.li.org)


More information about the Aurora-sparc-user mailing list