Benoit Joseph wrote:

Hello all,

I have a very strange problem with my ntpd server.

Its configuration resets all the time...

My config file is very simple,

server ntp.belnet.be
logfile /var/log/ntp.log
driftfile /var/lib/ntp/ntp.drift


After a reboot, my config file becomes

restrict default noquery notrust nomodify
restrict 127.0.0.1
restrict 217.117.42.0 mask 255.255.254.0
fudge 127.127.1.0 stratum 3
server 127.127.1.0
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log

And this without any operations of me.

This is quite annoying! Anybody has an idea? It will be welcome!

Thanks for advance,

Benoit


This just happened to me and Spider posted the solution. I won't rant on the merits of using isc-dhcp3 over dhcpcd.

So, you are using DHCP to get your network configuration? In /etc/conf.d/net, put the following:

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-N"

In particular, it is the -N parameter that will fix this. dhcpcd choses the most silly default behavior ... it is a rather destructive attitude I see on the part of the dhcpcd developers.

Tom Veldhouse

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to