Pages

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
...
#server         0.pool.ntp.org
#server         1.pool.ntp.org
#server         2.pool.ntp.org
server          192.168.1.73

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

# vi /etc/rc.conf
...
ntpd=YES
...

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
==============================================================================
 192.168.1.73    .INIT.          16 u    -   64    0    0.000    0.000   0.000

No comments:

Post a Comment