dhcpv6 server configuration

Shane Kerr Shane_Kerr at isc.org
Mon Nov 19 16:32:02 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pauline,

Yeung, Pauline wrote:
> I'm running dhcp 4.0.0b2 in two linux PC's, each with three NIC's.  The
> following shows the information on the server.
>  
>> uname -rm
> 2.6.22.9-61.fc6 i686
>  
>> /usr/local/sbin/dhcpd --version
> isc-dhcpd-4.0.0b2
>  
>> ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:90:27:1C:BC:70
>           inet addr:172.22.3.212  Bcast:172.22.63.255  Mask:255.255.192.0
>           inet6 addr: fe80::290:27ff:fe1c:bc70/64 Scope:Link
> :
> eth1      Link encap:Ethernet  HWaddr 00:11:25:4F:9E:7B
>           inet addr:192.168.99.99  Bcast:192.168.99.255  Mask:255.255.255.0
>           inet6 addr: fe80::211:25ff:fe4f:9e7b/64 Scope:Link
> :
> eth2      Link encap:Ethernet  HWaddr 00:19:5B:71:38:50
>           inet addr:192.168.144.212  Bcast:192.168.144.255 
> Mask:255.255.255.0
>           inet6 addr: fe80::219:5bff:fe71:3850/64 Scope:Link
> :
>  
> I'm using the following configuration file
> 
> subnet6 fec0:aaaa:bbbb:cccc::/64 {
>      range6 fec0:aaaa:bbbb:cccc::10 fec0:aaaa:bbbb:cccc::fd;
>      preferred-lifetime 360;
> }

All of these IPv6 addresses are "link local". You can read about them here:

http://www.cisco.com/web/about/ac123/ac147/archived_issues/ipj_7-2/ipv6_autoconfig.html

In order to use the DHCPv6 server, you need to have addresses with global scope.
Or "real" IPv6 addresses.

For testing, I sometimes use 6to4 addresses. The interesting thing about 6to4
for testing purposes is that if you have an IPv4 address, you can convert it to
an IPv6 network that you know is available, at least for a short while (you can
see on the bottom of the page):

http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html

So for my computer here I have 199.6.1.234, which is 2002:C706:01EF::/48. For
testing I can give my interface an address from this network:

# ifconfig eth1 add 2002:c706:01ef:0001::1/64

Then I can test the DHCP server by setting the appropriate information in the
configuration file:

subnet6 2002:c706:01ef:0001::1/64 {
     range6 2002:c706:01ef:0001:8000::/65;
}

(Your second e-mail, about the core dump, is possibly related, but we should
fail gracefully - I'm looking into that now.)

- --
Shane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQbp+MsfZxBO4kbQRApJHAKCgQo4VzxPSg8WSd+dhgVFZPllzdQCeKtaG
lsh+25JC0DWmHklpPHYCDy8=
=g8y8
-----END PGP SIGNATURE-----


More information about the dhcp-users mailing list