DHCPv6/auto setup for Windows Vista/7

Andreas Meile mailingliste at andreas-meile.ch
Wed Aug 17 10:41:38 UTC 2011


Hello Rick again

----- Original Message ----- 
From: "Andreas Meile" <mailingliste at andreas-meile.ch>
To: "Users of ISC DHCP" <dhcp-users at lists.isc.org>
Sent: Wednesday, August 17, 2011 12:15 PM
Subject: Re: DHCPv6/auto setup for Windows Vista/7


> I recommend to add a FAQ article to your home 
> http://linux.ardynet.com/ipv6setup.php as follow:
>
> ======= Beginn FAQ article =========
> Q: I want setup a Linux router for my Windows Vista/7 clients with a fully 
> working IPv6 auto-configuration infrastructure for my static 6in4 tunnel.

Additionally, I also got a working stateful DHCPv6 configuration:

/etc/radvd.conf:

interface eth0
{
   AdvSendAdvert on;
   AdvManagedFlag on;
   AdvOtherConfigFlag on;
   prefix 2001:db8:8:e000::/64
   {
       AdvOnLink on;
       AdvAutonomous off;
   };
   route ::/0
   {
   };
};

Consider: AdvAutonomous must be disabled (prevents the client to use a EUI64 
style autoconfiguration address) and AdvManagedFlag (tells that a IPv6 
address must be obtained from the DHCPv6 server) must be enabled.

/etc/dhcp/dhcpd.conf:

# DHCPv6 server: stateful
authoritative;
option dhcp6.name-servers 2001:db8:8:e000:202:b3ff:fe62:fda6;
option dhcp6.domain-search "example.net";

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

shared-network LAN {
        subnet6 2001:db8:8:e000::/64 {
                range6 2001:db8:8:e000::200 2001:db8:8:e000::220;
        }
}

The only difference to my stateless example is the range6 option.

After restarting both the radvd and dhcpd daemons, you get the following 
result on Windows:

========= Begin CMD.EXE session ====================
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\admklein>ipconfig /all

Windows-IP-Konfiguration

   Hostname  . . . . . . . . . . . . : mavtest
   Primäres DNS-Suffix . . . . . . . :
   Knotentyp . . . . . . . . . . . . : Hybrid
   IP-Routing aktiviert  . . . . . . : Nein
   WINS-Proxy aktiviert  . . . . . . : Nein
   DNS-Suffixsuchliste . . . . . . . : example.com
                                       example.local

Ethernet-Adapter LAN-Verbindung:

   Verbindungsspezifisches DNS-Suffix: sua-tele.net
   Beschreibung. . . . . . . . . . . : Intel(R) PRO/1000 
MT-Desktopverbindung
   Physikalische Adresse . . . . . . : 00-11-25-0C-E9-2C
   DHCP aktiviert. . . . . . . . . . : Ja
   Autokonfiguration aktiviert . . . : Ja
   IPv6-Adresse. . . . . . . . . . . : 2001:db8:8:e000::220(Bevorzugt)
   Lease erhalten. . . . . . . . . . : Mittwoch, 17. August 2011 12:19:07
   Lease läuft ab. . . . . . . . . . : Donnerstag, 18. August 2011 00:19:07
   Verbindungslokale IPv6-Adresse  . : 
fe80::b004:8d2f:ed91:c817%10(Bevorzugt)
   Standardgateway . . . . . . . . . : fe80::20d:60ff:fe49:9cc0%10
   DHCPv6-IAID . . . . . . . . . . . : 234884448
   DHCPv6-Client-DUID. . . . . . . . : 
00-01-00-01-14-7E-8E-22-00-0D-60-AC-1E-0E

   DNS-Server  . . . . . . . . . . . : 2001:db8:8:e000:202:b3ff:fe62:fda6
   NetBIOS über TCP/IP . . . . . . . : Deaktiviert
   Suchliste für verbindungsspezifische DNS-Suffixe:
                                       example.net

Tunneladapter Teredo Tunneling Pseudo-Interface:

   Medienstatus. . . . . . . . . . . : Medium getrennt
   Verbindungsspezifisches DNS-Suffix:
   Beschreibung. . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physikalische Adresse . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP aktiviert. . . . . . . . . . : Nein
   Autokonfiguration aktiviert . . . : Ja

C:\Users\admklein>ping -6 www.sunny.ch

Ping wird ausgeführt für mynx.iway.ch [2001:8e0:41:604::90] mit 32 Bytes 
Daten:
Antwort von 2001:8e0:41:604::90: Zeit=21ms
Antwort von 2001:8e0:41:604::90: Zeit=20ms
Antwort von 2001:8e0:41:604::90: Zeit=20ms
Antwort von 2001:8e0:41:604::90: Zeit=20ms

Ping-Statistik für 2001:8e0:41:604::90:
    Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
    (0% Verlust),
Ca. Zeitangaben in Millisek.:
    Minimum = 20ms, Maximum = 21ms, Mittelwert = 20ms

C:\Users\admklein>_
=============== End CMD.EXE session =========================

And /var/log/daemon.log shows the following lines:

Aug 17 12:09:38 ipv6gate dhcpd: Solicit message from 
fe80::b004:8d2f:ed91:c817 port 546, transaction ID 0xDA4C5600
Aug 17 12:09:38 ipv6gate dhcpd: Picking pool address 2001:db8:8:e000::220
Aug 17 12:09:38 ipv6gate dhcpd: Sending Advertise to 
fe80::b004:8d2f:ed91:c817 port 546
Aug 17 12:09:39 ipv6gate dhcpd: Request message from 
fe80::b004:8d2f:ed91:c817 port 546, transaction ID 0xDA4C5600
Aug 17 12:09:39 ipv6gate dhcpd: Sending Reply to fe80::b004:8d2f:ed91:c817 
port 546


I also recommend this to add as a FAQ article to linux.ardynet.com .

Note: Microsoft also has the same behaviour with the exclamation mark 
("limited connectitiy") symbol which immediately disappears after visiting 
something in the Internet Explorer.

           Andreas 





More information about the dhcp-users mailing list