activation de l'ip forwarding

root@obelix:~ # echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
root@obelix:~ # cat /proc/sys/net/ipv6/conf/all/forwarding
1
root@obelix:~ #

installation du paquet radvd

root@obelix:~ # aptitude install radvd

Suppression de vieilles IPs sur l'interface eth1 de mon routeur

root@obelix:/var/log # ip addr del 2001:5c0:912a::1/64 dev eth1
root@obelix:/var/log # ip addr add 2001:6f8:379::1/64 dev eth1

radvd.conf

root@obelix:/var/run/radvd # cat /etc/radvd.conf
interface eth1 {
        AdvSendAdvert on;
        MinRtrAdvInterval 3;
        MaxRtrAdvInterval 10;
        prefix 2001:6f8:379::/64 {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr on;
        };
};
root@obelix:/var/run/radvd # radvd -d 2

Démarrage du daemon radvd

root@obelix:~ # /etc/init.d/radvd stop
Stopping radvd: No /usr/sbin/radvd found running; none killed.
radvd.
root@obelix:~ # /etc/init.d/radvd start
Starting radvd: radvd.
root@obelix:~ #

Vue depuis un client Linux

ludo@idefix:~ % ip addr show eth1                                                                                                                             
8: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:13:ce:0d:35:5b brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.44/24 brd 192.168.1.255 scope global eth1
    inet6 2001:6f8:379:0:213:ceff:fe0d:355b/64 scope global dynamic 
       valid_lft 2592000sec preferred_lft 604800sec
    inet6 fe80::213:ceff:fe0d:355b/64 scope link 
       valid_lft forever preferred_lft forever
ludo@idefix:~ %