DHCPv6/auto setup for Windows Vista/7

Andreas Meile mailingliste at andreas-meile.ch
Sat Aug 6 14:24:44 UTC 2011

Hello anybody

The following situation: I have registered a 6in4 tunnel (static /64 network 
provided) and set-up a Debian Linux box (Squeeze) as IPv6 router with a 
/etc/network/interfaces like this one (I own a block of fixed public IPv4 

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

iface eth0 inet6 static
# pre-up modprobe ipv6
address 2001:db8:26:69b::1
netmask 64

auto 6in4
iface 6in4 inet6 v4tunnel
address 2001:db8:25:69b::2
netmask 64
gateway 2001:db8:25:69b::1
ttl 64
up ip link set mtu 1280 dev $IFACE

A Windows Vista/7 PC works without issues when configured manually. The 
goal: I'd like to setup a autoconfiguration infrastructure for IPv6 like 
DHCP[1] in IPv4 (on a productive Linux server from me, a ISC DHCP server 
installation works without issues since more than 9 years for IPv4). My 
first try was a "apt-get install radvd" with a /etc/radvd.conf like this 

interface eth0
   AdvSendAdvert on;
   prefix 2001:db8:26:69b::/64
   RDNSS 2001:db8:26:69b:204:76ff:fecd:79dd
   route ::/0

Result: Windows Vista/7 accepts this way of configuration except the RFC 
6106[2] style name server so I still have to manually configure the name 
servers at least, except I allow AAAA name resolution over IPv4 in the dual 
stack operation. But my goal is explicitely an IPv6 auto setup where I can 
completely disable IPv4 in Windows and I still have full Internet access to 
any properly IPv6 connected server.

So I gave a second try to "/etc/init.d/radvd stop && apt-get install 
isc-dhcp-server" and created a /etc/dhcp/dhcpd.conf like this one:

# Set this to `interim' when doing ddns updates
ddns-update-style none;

subnet6 2001:db8:26:69b::/64 {
        range6 2001:db8:26:69b::200 2001:db8:26:69b::220;
        prefix6 2001:db8:26:69b:: 2001:db8:26:69b::/64;
        option dhcp6.name-servers 2001:db8:26:69b:204:76ff:fecd:79dd;
        option dhcp6.domain-search "example.com";

and started "dhcpd -6" by hand because the /etc/init.d/isc-dhcp-server 
script does not support the "-6" option (or does anybody know something 
about a DHCPv6 server in the Debian distribution?). After a "ipconfig 
/release6" / "ipconfig /renew6" on the Windows box, an address is assigned 
but no default gateway so I get "General failure" when "ping -6"-ing 
something. "route print" does not show a default gateway[3] for IPv6.

So the big question: Has anybody sucessfully setup a IPv6 autoconfiguration 
infrastructure which works with Windows clients? Am I right that I have to 
use (stateless?) DHCPv6 and router advertisement simultaneously to achieve 
that goal with current Windows clients? So a sample of /etc/radvd.conf and 
/etc/dhcp/dhcpd.conf which accomplish that goal (running both daemons in 
parallel) would be very helpful.

Hints for good tutorials specific to this topic (I already found enough of 
general IPv6 tutorials which all address setting up tunnels and manually 
configured IPv6 addresses but fairly nothing about automatic configuration 
environments!) are also welcome.


[1] http://www.ietf.org/rfc/rfc2131.txt
[2] http://www.ietf.org/rfc/rfc6106.txt
[3] http://tools.ietf.org/html/draft-droms-dhc-dhcpv6-default-router-00
Teste die PC-Sicherheit mit www.sec-check.net

More information about the dhcp-users mailing list