Hey,
Ik ben een beetje bezig om IPv6 te verkennen. Echter wil dit niet echt werken. Ik krijg een IPv6 adres van de radvd server. Als ik probeer te pingen naar ipv6.google.com krijg ik Destination host unavailable. (
Pingen naar ipv6.l.google.com [2a00:1450:400c:c00::93] met 32 bytes aan gegevens
:
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Ping-statistieken voor 2a00:1450:400c:c00::93:
Pakketten: verzonden = 4, ontvangen = 0, verloren = 4
(100% verlies).
Nu heb ik het ingesteld met dit script:
#***************************
#Settings start here
#***************************
#basic connection settings
SERVER_IP4_ADDR="216.66.84.46"
CLIENT_IPV6_ADDR="2001:470:1f14:b12::2"
ROUTED_64_ADDR="2001:470:1f15:b12::"
# note that you have different subnets for ROUTED_64_ADDR and CLIENT_IPV6_ADDR
#account info to auto update endpoint
USERID="xxxxxxx"
PASSWD="xxxxxxx"
TUNNELID="1907xx"
#####Optional/Advanced Settings######
#logging settings (set to /dev/null for no logging)
STARTUP_SCRIPT_LOG_FILE="/tmp/ipv6.log"
CRON_STATUS_LOG_FILE="/tmp/lastHEUpdate.log"
#Generated files paths
CRON_JOB_FILE="/tmp/report.sh"
RADVD_CONFIG="/tmp/radvd.conf"
#***************************
#Settings end here
#***************************
insmod ipv6
sleep 10
#get a hash of the plaintext password
MD5PASSWD=`echo -n $PASSWD | md5sum | sed -e 's/ -//g'`
#cut out the "/64" if user typed it in
ROUTED_64_ADDR=`echo $ROUTED_64_ADDR|cut -f1 -d/`
SERVER_IP4_ADDR=`echo $SERVER_IP4_ADDR|cut -f1 -d/`
CLIENT_IPV6_ADDR=`echo $CLIENT_IPV6_ADDR|cut -f1 -d/`
#update HE endpoint
echo -e wget -q "\042http://ipv4.ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID\042" -O $CRON_STATUS_LOG_FILE >$CRON_JOB_FILE
chmod +x $CRON_JOB_FILE
wget -q "http://ipv4.ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O $STARTUP_SCRIPT_LOG_FILE
#get wan ip for our own use
WANIP=`wget http://whatismyip.com/automation/n09230945.asp -O - 2>/dev/null`
echo "External IP:" $WANIP >> $STARTUP_SCRIPT_LOG_FILE
if [ -n $WANIP ]
then
echo "configuring tunnel" >> $STARTUP_SCRIPT_LOG_FILE
# The following commands are straight from HE's website
# modprobe ipv6
#modprobe is replaced by insmod ipv6 so doesn't work/ isn't needed anymore
ip tunnel add he-ipv6 mode sit remote $SERVER_IP4_ADDR local $WANIP ttl 255
ip link set he-ipv6 up
ip addr add $CLIENT_IPV6_ADDR/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
#ip -f inet6 addr
# no need to print
TEMP_ADDR=`echo $ROUTED_64_ADDR'1'`
# These commands aren't on HE's website, but they're necessary for the tunnel to work
ip -6 addr add $TEMP_ADDR/64 dev br0
ip route add 2000::/3 dev he-ipv6
#Enable IPv6 forwarding
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
# make sure to accept proto-41
iptables -I INPUT 2 -p ipv6 -i vlan1 -j ACCEPT
## wasn't needed to get it working
#make sure to not NAT proto-41
#iptables -t nat -A POSTROUTING --proto ! 41 -o eth0 -j MASQUERADE
# wasn't needed to get it working
echo "starting radvd" >> $STARTUP_SCRIPT_LOG_FILE
#creating radvd.conf
echo "#generated by startup script" > $RADVD_CONFIG
echo "interface br0 {" >> $RADVD_CONFIG
echo "AdvSendAdvert on;" >> $RADVD_CONFIG
echo "prefix "$ROUTED_64_ADDR"/64 {" >> $RADVD_CONFIG
echo "AdvOnLink on;" >> $RADVD_CONFIG
echo "AdvAutonomous on;" >> $RADVD_CONFIG
echo "AdvRouterAddr on;" >> $RADVD_CONFIG
echo "};" >> $RADVD_CONFIG
echo "};" >> $RADVD_CONFIG
#kill old versions of radvd
echo "killing any old versions of radvd" >> $STARTUP_SCRIPT_LOG_FILE
kill -s 9 $(cat /var/run/radvd.pid)
sleep 1
echo "starting radvd" >> $STARTUP_SCRIPT_LOG_FILE
radvd -C $RADVD_CONFIG &
fi
En dit is de uitkomst van lsmod:
lsmod
Module Size Used by
etherip 4256 0
nf_nat_pptp 1344 0
nf_conntrack_pptp 3104 1 nf_nat_pptp
nf_nat_proto_gre 784 1 nf_nat_pptp
nf_conntrack_proto_gre 2368 1 nf_conntrack_pptp
xfrm6_tunnel 1872 0
xfrm6_mode_tunnel 1040 0
xfrm6_mode_transport 608 0
xfrm6_mode_ro 512 0
xfrm6_mode_beet 1040 0
ip6_tunnel 10304 0
tunnel6 1520 2 xfrm6_tunnel,ip6_tunnel
mip6 3936 0
sit 8992 0
tunnel4 1632 1 sit
ipv6 227536 29 xfrm6_tunnel,xfrm6_mode_tunnel,xfrm6_mode_beet,ip6_tunnel,tunnel6,mip6,sit
ath9k 86832 0
ath9k_common 1184 1 ath9k
ath9k_hw 317872 2 ath9k,ath9k_common
ath 12288 3 ath9k,ath9k_common,ath9k_hw
mac80211 200960 1 ath9k
cfg80211 135456 2 ath9k,mac80211
compat 3664 5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
ag71xx 21488 0
Hier de uitkomst van ip -6 route show
ip -6 route show
2001:470:1f15:b12::/64 dev br0 proto kernel metric 256
fe80::/64 dev eth0 proto kernel metric 256
fe80::/64 dev vlan1 proto kernel metric 256
fe80::/64 dev br0 proto kernel metric 256
fe80::/64 dev ath0 proto kernel metric 256
fe80::/64 dev ath1 proto kernel metric 256
fe80::/64 dev vlan2 proto kernel metric 256
unreachable default dev lo proto kernel metric -1 error -128 hoplimit 255
ff00::/8 dev eth0 metric 256
ff00::/8 dev vlan1 metric 256
ff00::/8 dev br0 metric 256
ff00::/8 dev ath0 metric 256
ff00::/8 dev ath1 metric 256
ff00::/8 dev vlan2 metric 256
unreachable default dev lo proto kernel metric -1 error -128 hoplimit 255
Ik heb de goede gegevens ingevuld in het script.
Weten jullie wat dit kan zijn?
Mvg,
Kevinwalter
Ik ben een beetje bezig om IPv6 te verkennen. Echter wil dit niet echt werken. Ik krijg een IPv6 adres van de radvd server. Als ik probeer te pingen naar ipv6.google.com krijg ik Destination host unavailable. (
Pingen naar ipv6.l.google.com [2a00:1450:400c:c00::93] met 32 bytes aan gegevens
:
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Het doelnetwerk is niet bereikbaar.
Ping-statistieken voor 2a00:1450:400c:c00::93:
Pakketten: verzonden = 4, ontvangen = 0, verloren = 4
(100% verlies).
Nu heb ik het ingesteld met dit script:
#***************************
#Settings start here
#***************************
#basic connection settings
SERVER_IP4_ADDR="216.66.84.46"
CLIENT_IPV6_ADDR="2001:470:1f14:b12::2"
ROUTED_64_ADDR="2001:470:1f15:b12::"
# note that you have different subnets for ROUTED_64_ADDR and CLIENT_IPV6_ADDR
#account info to auto update endpoint
USERID="xxxxxxx"
PASSWD="xxxxxxx"
TUNNELID="1907xx"
#####Optional/Advanced Settings######
#logging settings (set to /dev/null for no logging)
STARTUP_SCRIPT_LOG_FILE="/tmp/ipv6.log"
CRON_STATUS_LOG_FILE="/tmp/lastHEUpdate.log"
#Generated files paths
CRON_JOB_FILE="/tmp/report.sh"
RADVD_CONFIG="/tmp/radvd.conf"
#***************************
#Settings end here
#***************************
insmod ipv6
sleep 10
#get a hash of the plaintext password
MD5PASSWD=`echo -n $PASSWD | md5sum | sed -e 's/ -//g'`
#cut out the "/64" if user typed it in
ROUTED_64_ADDR=`echo $ROUTED_64_ADDR|cut -f1 -d/`
SERVER_IP4_ADDR=`echo $SERVER_IP4_ADDR|cut -f1 -d/`
CLIENT_IPV6_ADDR=`echo $CLIENT_IPV6_ADDR|cut -f1 -d/`
#update HE endpoint
echo -e wget -q "\042http://ipv4.ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID\042" -O $CRON_STATUS_LOG_FILE >$CRON_JOB_FILE
chmod +x $CRON_JOB_FILE
wget -q "http://ipv4.ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O $STARTUP_SCRIPT_LOG_FILE
#get wan ip for our own use
WANIP=`wget http://whatismyip.com/automation/n09230945.asp -O - 2>/dev/null`
echo "External IP:" $WANIP >> $STARTUP_SCRIPT_LOG_FILE
if [ -n $WANIP ]
then
echo "configuring tunnel" >> $STARTUP_SCRIPT_LOG_FILE
# The following commands are straight from HE's website
# modprobe ipv6
#modprobe is replaced by insmod ipv6 so doesn't work/ isn't needed anymore
ip tunnel add he-ipv6 mode sit remote $SERVER_IP4_ADDR local $WANIP ttl 255
ip link set he-ipv6 up
ip addr add $CLIENT_IPV6_ADDR/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
#ip -f inet6 addr
# no need to print
TEMP_ADDR=`echo $ROUTED_64_ADDR'1'`
# These commands aren't on HE's website, but they're necessary for the tunnel to work
ip -6 addr add $TEMP_ADDR/64 dev br0
ip route add 2000::/3 dev he-ipv6
#Enable IPv6 forwarding
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
# make sure to accept proto-41
iptables -I INPUT 2 -p ipv6 -i vlan1 -j ACCEPT
## wasn't needed to get it working
#make sure to not NAT proto-41
#iptables -t nat -A POSTROUTING --proto ! 41 -o eth0 -j MASQUERADE
# wasn't needed to get it working
echo "starting radvd" >> $STARTUP_SCRIPT_LOG_FILE
#creating radvd.conf
echo "#generated by startup script" > $RADVD_CONFIG
echo "interface br0 {" >> $RADVD_CONFIG
echo "AdvSendAdvert on;" >> $RADVD_CONFIG
echo "prefix "$ROUTED_64_ADDR"/64 {" >> $RADVD_CONFIG
echo "AdvOnLink on;" >> $RADVD_CONFIG
echo "AdvAutonomous on;" >> $RADVD_CONFIG
echo "AdvRouterAddr on;" >> $RADVD_CONFIG
echo "};" >> $RADVD_CONFIG
echo "};" >> $RADVD_CONFIG
#kill old versions of radvd
echo "killing any old versions of radvd" >> $STARTUP_SCRIPT_LOG_FILE
kill -s 9 $(cat /var/run/radvd.pid)
sleep 1
echo "starting radvd" >> $STARTUP_SCRIPT_LOG_FILE
radvd -C $RADVD_CONFIG &
fi
En dit is de uitkomst van lsmod:
lsmod
Module Size Used by
etherip 4256 0
nf_nat_pptp 1344 0
nf_conntrack_pptp 3104 1 nf_nat_pptp
nf_nat_proto_gre 784 1 nf_nat_pptp
nf_conntrack_proto_gre 2368 1 nf_conntrack_pptp
xfrm6_tunnel 1872 0
xfrm6_mode_tunnel 1040 0
xfrm6_mode_transport 608 0
xfrm6_mode_ro 512 0
xfrm6_mode_beet 1040 0
ip6_tunnel 10304 0
tunnel6 1520 2 xfrm6_tunnel,ip6_tunnel
mip6 3936 0
sit 8992 0
tunnel4 1632 1 sit
ipv6 227536 29 xfrm6_tunnel,xfrm6_mode_tunnel,xfrm6_mode_beet,ip6_tunnel,tunnel6,mip6,sit
ath9k 86832 0
ath9k_common 1184 1 ath9k
ath9k_hw 317872 2 ath9k,ath9k_common
ath 12288 3 ath9k,ath9k_common,ath9k_hw
mac80211 200960 1 ath9k
cfg80211 135456 2 ath9k,mac80211
compat 3664 5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
ag71xx 21488 0
Hier de uitkomst van ip -6 route show
ip -6 route show
2001:470:1f15:b12::/64 dev br0 proto kernel metric 256
fe80::/64 dev eth0 proto kernel metric 256
fe80::/64 dev vlan1 proto kernel metric 256
fe80::/64 dev br0 proto kernel metric 256
fe80::/64 dev ath0 proto kernel metric 256
fe80::/64 dev ath1 proto kernel metric 256
fe80::/64 dev vlan2 proto kernel metric 256
unreachable default dev lo proto kernel metric -1 error -128 hoplimit 255
ff00::/8 dev eth0 metric 256
ff00::/8 dev vlan1 metric 256
ff00::/8 dev br0 metric 256
ff00::/8 dev ath0 metric 256
ff00::/8 dev ath1 metric 256
ff00::/8 dev vlan2 metric 256
unreachable default dev lo proto kernel metric -1 error -128 hoplimit 255
Ik heb de goede gegevens ingevuld in het script.
Weten jullie wat dit kan zijn?
Mvg,
Kevinwalter