# # I have native IPv6 now and no longer maintain this file, but it still works. # # See ./interfaces-native for my shiny new simple file :) # # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. # Loopback 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 # # Based on a dozen different guides, plus experimentation. # # I switched from the remote/local/"endpoint any" scheme to this one to fix # ping6ing the Server IPv6 address. # # Relevant links (aside from HE's instructions): # http://davecoyle.com/documents/ubuntu-ipv6-he-tunnel.html # 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) # http://www.tunnelbroker.net/forums/index.php?topic=18.0 # http://forum.linode.com/viewtopic.php?t=5629 # http://www.davidc.net/networking/ipv6-source-address-selection-linux 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" are both popular and both work for me. # Note: 2000::/3 and ::/0 are both popular and both work for me. # Note: I have heard this bit is just to work around a bug in certain # 2.6.20.x and 2.6.21.x kernels, but I have not confirmed it myself: # http://forum.linode.com/viewtopic.php?p=29651#29651 up ip route add 2000::/3 dev he-ipv6 down ip route flush dev he-ipv6 # Prefer my primary IP address for outgoing connections. # Don't forget the other "preferred_lft 0" bits below! up ip addr change 2001:470:1f0e:b4::2/64 dev he-ipv6 preferred_lft 0 up ip addr add 2001:470:1f0f:b4::1/128 dev he-ipv6 up ip addr add 2001:470:1f0f:b4::2/128 dev he-ipv6 preferred_lft 0 up ip addr add 2001:470:1f0f:b4::123:1/128 dev he-ipv6 preferred_lft 0 up ip addr add 2001:470:1f0f:b4:123::1/128 dev he-ipv6 preferred_lft 0 up ip addr add 2001:470:1f0f:b4:443::1/128 dev he-ipv6 preferred_lft 0