Saturday, February 18, 2012

Configuring NTP in NetBSD

To configure the NTP client in NetBSD edit ntp.conf file end jump to the end of the file. Then uncomment all servers and add your own NTP server like this:

# vi /etc/ntp.conf

Next add the line ntpd=YES to rc.conf to start it while booting:

# vi /etc/rc.conf

Then start the NTP client manually once:

# /etc/rc.d/ntpd start

And check if it is running:

# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================    .INIT.          16 u    -   64    0    0.000    0.000   0.000

No comments:

Post a Comment