Wednesday, October 12, 2005


Don't you just love catching yourself doing something stupid? I managed
to troubleshoot my IPv6 routing issue in about 10 seconds once I started
to look at it. (Thanks to Wes for prompting me to do it.) The fix is
to not add the following to /etc/init.d/rcS. Rather, create a file
called /etc/init.d/S99tunnel and put it there:


#/bin/mkdir -p /var/log/
ntpclient -h -l -s &

# set up the IPv6 tunnel
MYIPADDR=`ip addr show vlan1|grep "inet "|cut -d\/ -f 1|cut -d \ -f 6- `
echo $MYIPADDR > /etc/myipaddr
#MYSCND=`cat /etc/myipaddr`
#echo $MYSCND > /etc/my2ipaddr
ip tunnel add mode sit remote local $MYIPADDR ttl 255
ip link set up
ip addr add 2001:470:1F00:FFFF::657/127 dev
ip route add ::/0 dev
ip -f inet6 addr
ip -6 addr add 2001:470:1F00:911::1/64 dev eth1
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
sleep 15
killall dnsmasq
dnsmasq -i eth1