Thursday, November 12, 2009

IPv6 subnet configuration for SixXS (router / radvd)

I received my /48, here is how I routed the first /64 at home:


Startup scripts:

jemurray@glock:~$ cat /etc/init.d/ip6tunnel.sh
#!/bin/bash

ifconfig eth0 inet6 add 2001:4978:268::1/64 up
route -A inet6 add 2001:4978:268::/64 dev eth0 metric 1
echo "1" > /proc/sys/net/ipv6/conf/all/forwarding


router advertisement daemon (stateless client configuration):

jemurray@glock:~$ cat /etc/radvd.conf
interface eth0 {
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 2001:4978:268::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
AdvPreferredLifetime 20;
AdvValidLifetime 30;
};
};

No comments:

Post a Comment

Followers