Issue with ipv6 on debian
On my server i am trying to install an ipv6 and i used slackware before
and this script worked with slackware butdoes not work with my debian
install. It adds the tunnel and the ip address to eth0 but it also adds
/96 blocks that i did not ask it to and it does not seem to have a route
to the tunnel.
script:
ifconfig output:
traceroute6:
debglade:/etc/bind# traceroute6 irc6.oftc.net
traceroute to irc6.oftc.net (2001:968:1::6666) from
2001:618:400::4655:103f, 30 hops max, 16 byte packets
1 * * *
debglade:/etc/bind# traceroute6 sixxs.net
traceroute to sixxs.net (2001:838:1:1:210:dcff:fe20:7c7c) from
2001:618:400::4655:103f, 30 hops max, 16 byte packets
1 * * *
Any help would be great
Thanks
Josh
4 Replies
yourself an address allocated, this script works very well:
> ip tunnel add sixxs mode sit local 70.85.16.63 remote 193.1.31.74
ip link set sixxs up
ip link set mtu 1280 dev sixxs
ip tunnel change sixxs ttl 64
ip -6 addr add 2001:770
:100: 37::2/64 dev sixxsip -6 ro add default via 2001:770
:100: 37::1 dev sixxsroot@debglade:~# ip tunnel add sixxs mode sit local 70.85.16.63 remote 193.1.31.74
ioctl: No buffer space available
root@debglade:~# ip link set sixxs up
root@debglade:~# ip link set mtu 1280 dev sixxs
root@debglade:~# ip tunnel change sixxs ttl 64
root@debglade:~# ip -6 addr add 2001:770
:100: 37::2/64 dev sixxsroot@debglade:~# ip -6 ro add default via 2001:770
:100: 37::1 dev sixxs–------------------------------------------------------------
ifconfig sit0 up
ifconfig sit0 tunnel ::193.1.31.74
ifconfig sit1 up
ifconfig sit1 add 2001:770
:100: 37::2/64route -A inet6 add 2000::/3 gw 2001:770
:100: 37::1 dev sit1ip link set mtu 1280 dev sit0
ip tunnel change sit0 ttl 64
ip link set mtu 1280 dev sit1
ip tunnel change sit1 ttl 64
root@debglade:~# ifconfig eth0 inet6 del 2001:770
:100: 37::2/64root@debglade:~# ifconfig sit0 up
root@debglade:~# ifconfig sit0 tunnel ::193.1.31.74
root@debglade:~# ifconfig sit1 up
sit1: ERROR while getting interface flags: No such device
root@debglade:~# ifconfig sit1 add 2001:770
:100: 37::2/64SIOGIFINDEX: No such device
root@debglade:~# route -A inet6 add 2000::/3 gw 2001:770
:100: 37::1 dev sit1SIOGIFINDEX: No such device
root@debglade:~# ip link set mtu 1280 dev sit0
root@debglade:~# ip tunnel change sit0 ttl 64
ttl != 0 and noptmudisc are incompatible
root@debglade:~# ip link set mtu 1280 dev sit1
SIOCSIFMTU: No such device
root@debglade:~# ip tunnel change sit1 ttl 64
ioctl: No such device
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::70.85.16.65/96 Scope:Compat
inet6 addr: ::70.85.16.64/96 Scope:Compat
inet6 addr: ::70.85.16.109/96 Scope:Compat
inet6 addr: ::70.85.16.108/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
inet6 addr: ::70.85.16.63/96 Scope:Compat
UP RUNNING NOARP MTU:1280 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3158 (3.0 KiB) TX bytes:0 (0.0 b)
> root@debglade:~# ip tunnel add sixxs mode sit local 70.85.16.63 remote 193.1.31.74
ioctl: No buffer space available
Seems that you'll need to do the ipv6 config immediately after rebooting. Otherwise your memory might be too fragmented.