DHCPv6/auto setup for Windows Vista/7
Andreas Meile
mailingliste at andreas-meile.ch
Wed Aug 17 10:15:44 UTC 2011
Hello Rick
----- Original Message -----
From: "Rick Dicaire" <kritek at gmail.com>
To: "Users of ISC DHCP" <dhcp-users at lists.isc.org>
Sent: Saturday, August 06, 2011 4:36 PM
Subject: Re: DHCPv6/auto setup for Windows Vista/7
> Take a look at
>
> http://linux.ardynet.com/ipv6setup.php
>
> This details RA/DHCPv6/dynamic dns configurations, hope this helps
Thanks for your article. Meanwhile after several attempts I got a working
IPv6 configuration based on the RFC 4862[1] flags, i.e. the key point is the
right cooperation between dhcpd (running as stateless DHCP server) and radvd
(must advert AdvOtherConfigFlag to control the client to get the missing
things like DNS servers).
For my test, I used the following files:
/etc/radvd.conf:
interface eth0
{
AdvSendAdvert on;
AdvManagedFlag off;
AdvOtherConfigFlag on;
prefix 2001:db8:8:e000::/64
{
AdvOnLink on;
AdvAutonomous on;
};
route ::/0
{
};
};
/etc/dhcp/dhcpd.conf:
# DHCPv6 server: distribute DNS servers and domain suffix list only
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 {
# No range6 needed because stateless!
}
}
After
/etc/init.d/radvd start
dhcpd -6 eth0
you get the following result in Windows 7 (I only have a German installation
DVD from Microsoft but I hope the numbers are self-speaking) when the IPv4
protocol is disabled in the network settings:
=========== Beginn 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: example.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:b004:8d2f:ed91:c817(Bevorzugt)
Temporäre IPv6-Adresse. . . . . . :
2001:db8:8:e000:bdde:27bf:4af9:681a(Bevorzugt)
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=19ms
Antwort von 2001:8e0:41:604::90: Zeit=21ms
Antwort von 2001:8e0:41:604::90: Zeit=25ms
Antwort von 2001:8e0:41:604::90: Zeit=19ms
Ping-Statistik für 2001:8e0:41:604::90:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 19ms, Maximum = 25ms, Mittelwert = 21ms
C:\Users\admklein>_
============== End CMD.EXE ============================
Important note: Windows 7 shows an exlamation mark first (limited
connectity) but as soon as your visit the first IPv6 connected web site like
www.sunny.ch in the Internet Explorer then Microsoft's network connection
manager is happy immediately. :-)
In /var/log/daemon.log you get the following entries when everything works:
Aug 17 11:26:34 ipv6gate dhcpd: Information-request message from
fe80::b004:8d2f:ed91:c817 port 546, transaction ID 0x5E09CE00
Aug 17 11:26:34 ipv6gate dhcpd: Sending Reply to fe80::b004:8d2f:ed91:c817
port 546
i.e. Windows 7 has requested the missing configuration informations only.
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.
A: Because Microsoft does not support the RFC 6106 style RDNSS option yet
you need both the radvd and dhcpd daemon together and setup a RFC 4862 style
auto config infrastructure. Use the following /etc/radvd.conf and
/etc/dhcp/dhcpd.conf:
(Post my examples above)
======= End FAQ article =========
Andreas
[1] http://www.ietf.org/rfc/rfc4862.txt
More information about the dhcp-users
mailing list