IP is The [[Internet]] [[Protocol]]



ToDo : IPV6

IVP6 : http://lehobey-rennes.dyndns.org/dokuwiki/doku.php?id=doc:ipv6

sudo apt-get install 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} #"
[[ -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}
auto lo
iface lo inet loopback
#} http://rzr.online.fr/q/IP


# /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



ip.txt · Last modified: 2018/05/30 10:34 by rzr
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki