I am configuring a NTP server to synchronize the time on the both systems, Linux and Windows. I'm using CentOS 7 and Windows Server 2012.
/etc/ntp.conf, I set the Windows Server IP address instead of the defaults.
#server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server example.com
Therefore, I input
ntpq -p, but it seems not working well. In
refid column, there is no IP address and I can't see
* as well. Even the time is not same in the both systems.
[root@ ~]# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== example.com .LOCL. 1 u 3 64 377 1.056 5760156 6.457
Meaning, I guess the above result should(?) or must be shown as following, doesn't it?
[root@ ~]# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *example.com 192.168.x.x 1 u 3 64 377 1.056 5760156 6.457
What do I need to do to fix? When I stop
ntpd and input
ntpdate example.com, it seems that synchronization works. I can get the correct time. Is it fine with this??
Additionally, I can't see any ntp config in
chkconfig --list. Is it ok?
[root@ ~]# chkconfig --list Note: This output shows SysV services only and does not include native ... jexec 0:off 1:on 2:on 3:on 4:on 5:on 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off