ifconfig $iface | grep MULTICAST
sudo apt-get install -y \ iproute radvd dnsmasq ipmasq resolvconf iputils-ping iputils-tracepath ip -6 route && ping6 -n www.6bone.net # once configured IPV4=$(ipofif $(default-if) ) IPV6=$(printf "2002:%x%02x:%x%02x::\n" `echo ${IPV4} | tr "." " "` ) echo "# IVP4=${IPV4} # IPV6=${IPV6} #" t=/etc/network/interfaces [[ -z $t.orig ]] && cp $t $t.orig cat > /etc/network/interfaces << EOF #{ http://rzr.online.fr/q/IP auto sit1 iface sit1 inet6 v4tunnel address ${IPV6} netmask 64 endpoint any local ${IPV4} pre-up modprobe ipv6 pre-up sysctl -w net.ipv6.conf.all.forwarding=1 pre-up sysctl -w net.ipv6.conf.all.autoconf= pre-up sysctl -w net.ipv6.conf.all.accept_ra= pre-up sysctl -w net.ipv6.conf.all.accept_redirects= pre-up sysctl -w net.ipv6.conf.all.router_solicitations= auto eth0 iface eth0 inet6 static address ${IVP6} netmask 64 pre-up modprobe ipv6 iface eth0 inet static address ${IVP4} netmask 255.255.255.0 auto lo iface lo inet loopback dns-nameservers 127.0.0.1 #} http://rzr.online.fr/q/IP EOF #EOF # /etc/radvd.conf # /etc/dnsmasq # /etc/hosts # /etc/network/interfaces invoke-rc.d networking restart invoke-rc.d ipmasq restart invoke-rc.d radvd restart invoke-rc.d dnsmasq restart
# cat /etc/network/interfaces auto lo iface lo inet loopback mapping hotplug script grep map eth0
iface eth0 inet dhcp
Shell :
wget -O - www.whatismyip.com |grep h1|cut -d' ' -f4 |xargs xmessage
http://www.renater.fr/article.php3?id_article=328
http://www.mipl.mediapoli.com/