====== IPv6 in Linux ====== * [[http://lucastomicki.net/ipv6.router.php|Building an IPv6 router with GNU/Linux]] * [[http://www.gentoo.org/doc/en/ipv6.xml|Gentoo IPv6 Router Guide]] - good notes on dhcp/dns ===== IPv4-IPv6 Tunnels ===== **HE IPv6 Tunnel Broker http://tunnelbroker.net/** auto he6to4 iface he6to4 inet6 v4tunnel address xxx:yyy:uuu:zzz::2 netmask 64 gateway xxx:yyy:uuu:zzz::1 endpoint 216.66.84.46 local A.B.C.D # needed if you have multiple external Interfaces ttl 64 # needed because of a tunneling situation **SIXXS Tunnel Broker http://www.sixxs.net** FIXME ===== Basic configuration (Debian/ubuntu) ===== auto ethX iface ethX inet6 static address xxxx:yyyy:uuuu:::1 netmask 64 net.ipv6.conf.default.forwarding=1 ===== Basic configuration (RHEL/Fedora/CentOS) ===== NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=linux IPV6INIT=yes IPV6ADDR= IPV6_DEFAULTGW= Save and close the file. Restart networking: # service network restart ===== Router adv ===== **Router side** interface eth0 { AdvSendAdvert on; IgnoreIfMissing on; MinRtrAdvInterval 3; MaxRtrAdvInterval 30; AdvDefaultPreference low; AdvHomeAgentFlag off; AdvManagedFlag on; # AdvOtherConfigFlag on; prefix 2001:15c0:1000:1036::/64 { AdvOnLink on; AdvAutonomous off; AdvRouterAddr off; }; RDNSS 2001:15c0:1000:1036::1 2001:15c0:ffff:f::12 { AdvRDNSSPreference 8; AdvRDNSSOpen off; }; }; ===== Router dibbler dhcpv6 ===== **Router side** log-level 1 log-mode short preference 0 iface eth1 { option dns-server 2001:15c0:ffff:f::12,2001:15c0:1000:1036::1 option domain net.lan option time-zone CET option lifetime 500 t1 1800-2000 t2 2700-3000 prefered-lifetime 3600 valid-lifetime 7200 class { pool 2001:15c0:1000:1036::1/64 } }