Home>

I want to synchronize an NTP server with FreeBSD 11.1, but it doesn't work. I asked this question before and thought that it was the same symptom as it was. I tried everything as it was, but it was not synchronized at all. Please answer if you know the solution.

Contents of ntp.conf
tos minclock 3 maxclock 6
pool 0.freebsd.pool.ntp.org iburst
restrict default limited kod nomodify notrap noquery nopeer
restrict -6 default limited kod nomodify notrap noquery nopeer
restrict source limited kod nomodify notrap noquery
restrict 127.0.0.1
restrict [:: 1]
restrict 192.168.0.0 mask 255.255.0.0 noquery nomodify nopeer notrap
server ntp1.jst.mfeed.ad.jp
#server ntp2.jst.mfeed.ad.jp
#server ntp3.jst.mfeed.ad.jp
leapfile "/var/db/ntpd.leap-seconds.list"
logfile /var/log/ntpd.log
Current status
ntpq -p


Even if the command is executed

No association ID's returned


Is displayed.

ntpdate ntp1.jst.mfeed.ad.jp
27 Aug 17:23:17 ntpdate [1284]: the NTP socket is in use, exiting


Is displayed.

ntpd


After executing the command

less /var/log/ntpd.log


Check the log at

27 Aug 17:25:43 ntpd [1289]: unable to bind to wildcard address ::-another pro
cess may be running-EXITING


Is displayed and the socket is occupied.
To kill ntpd

killall ntpd


After running

/etc/rc.d/ntpd start


Start with ntpq -p

No association ID's returned


Is displayed.

  • Answer # 1

    If you use the server line, comment out the pool line.

    Start/stop/restart ntpd with the following command ...

    service ntpd start
    service ntpd stop
    service ntpd restart


    Also, as you know, ntpdate uses the same port as ntpd, so stop ntpd and run it.