Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2014 21:14:16 +0200
From:      bsdaddict <bsdaddict@privatdemail.net>
To:        freebsd-questions@freebsd.org
Subject:   dhclient.conf and ipv6 addresses
Message-ID:  <54495388.6030106@privatdemail.net>

next in thread | raw e-mail | index | archive | help
Hi,
I'm running 10.0-RELEASE-p18 and have a native ipv6 address from my isp 
(dual ipv4 and ipv6).
And my problem : /etc/dhclient.conf doesn't seem to want any ipv6 addresses.
This is my /etc/dhclient.conf :
cat /etc/dhclient.conf
# $FreeBSD$
#
# This file is required by the ISC DHCP client.
# See ``man 5 dhclient.conf'' for details.
#
# In most cases an empty file is sufficient for most people as the
# defaults are usually fine.
#
supersede domain-name-servers 8.8.8.8, 8.8.4.4;
supersede domain-name-servers [2a02:1800:100::41:2], [2a02:1800:100::41:1];

All goes well for the ipv4 dns but no luck with the ipv6 format. From my 
dmesg :
...
Starting dhclient.
/etc/dhclient.conf line 10: expecting numeric value.
supersede domain-name-servers [
^
...
The "^" being under the square bracket.

Trying without the square brackets [...] in dhclient.conf gets this in 
dmesg :
...
re0: link state changed to UP
Oct 6 19:50:58 bsdaddict dhclient[34123]: Bogus number: 2a02: digit 10 
not in base 10
Oct 6 19:50:58 bsdaddict dhclient[34123]: /etc/dhclient.conf line 10: 
too few numbers.
Oct 6 19:50:58 bsdaddict dhclient[34123]: supersede domain-name-servers 
2a02:
Oct 6 19:50:58 bsdaddict dhclient[34123]: ^
...
The "^" being under the semi colon.

So first of all, is dhclient(.conf) ipv6 ready and if so in what format 
do I get the dns servers in?

Thanks for any help here.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54495388.6030106>