# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. # The loopback interface auto lo iface lo inet loopback # Main IP - 67.18.187.111 auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 67.18.187.111 gateway 67.18.187.1 netmask 255.255.255.0 # Private IP - 192.168.130.4 auto eth0:0 iface eth0:0 inet static address 192.168.130.4 netmask 255.255.128.0 # HE IPv6 tunnel - 2001:470:1f0f:b4::/64 # # Server IPv4 address: 216.218.224.42 # Server IPv6 address: 2001:470:1f0e:b4::1/64 # Client IPv4 address: 67.18.187.111 # Client IPv6 address: 2001:470:1f0e:b4::2/64 # Routed /64: 2001:470:1f0f:b4::/64 # # Originally based on HE's ip and ifconfig instructions, and: # http://davecoyle.com/documents/ubuntu-ipv6-he-tunnel.html # and probably other things. # # There are also other schemes, e.g.: # http://www.linode.com/wiki/index.php/IPv6#Debian # http://troyreynolds.com/linux/setting-up-debian-for-ipv6/ # http://ertius.org/docs/ipv6-tunnel-on-debian.html # http://www.tunnelbroker.net/forums/index.php?topic=310.0 # http://pastebin.com/f5615dced (used by HoopyCat, but it didn't work for me) # http://pastebin.com/f31e817e (HoopyCat says it works; ~same as mine) # See also: # http://www.tunnelbroker.net/forums/index.php?topic=18.0 # # (Note: The comments above saying which scheme I use are out-of-date. There # are two main schemes, and I have since switched from one to the other to make # ping6ing the tunnel server work.) auto he-ipv6 iface he-ipv6 inet6 v4tunnel address 2001:470:1f0e:b4::2 netmask 64 # Note: Most examples use 64, but HE's instructions used 255. ttl 255 gateway 2001:470:1f0e:b4::1 endpoint 216.218.224.42 local 67.18.187.111 # Note: "ip -6" and "ip" both work for me. Dunno if there are differences. # Note: 2000::/3 and ::/0 are both popular, and both work for me. up ip route add 2000::/3 dev he-ipv6 up ip addr add 2001:470:1f0f:b4::1:1/128 dev he-ipv6 up ip addr add 2001:470:1f0f:b4::123:1/128 dev he-ipv6 down ip route flush dev he-ipv6