dhclient.conf and ipv6 addresses

bsdaddict bsdaddict at privatdemail.net
Thu Oct 23 19:22:20 UTC 2014


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.


More information about the freebsd-questions mailing list