Configure NTP Client : CentOS
Configure NTP Client.
The settings of NTP Client on CentOS are mostly the same with Server's settings, so refer to NTPd Settings or Chrony Settings. For different settings from Server's one, Clients don't need to receive time synchronization requests from other computers, so it does not need to set access permission.
|||If you don't use NTP service daemon but use a command to sync time at once, use ntpdate like follows.|
yum -y install ntpdate
[root@dlp ~]#[root@dlp ~]#
24 Jan 11:35:15 ntpdate: adjust time server xxx.xxx.xxx.xxx offset 0.004626 sec
systemctl enable ntpdate
Configure NTP Client : Windows
Configure NTP Client on Windows. This example is based on Windows 10 Pro.
|||Open [Control Panel] - [Date and Time] and move to [internet Time] tab, then [Change settings] button.|
|||Input NTP server you'd like to sync on [Server] section and [Update now] button.|
|||It's OK to sync time if successuful message is shown like follows.
The default setting of sync interval is 86400 sec (one day).
If you'd like to configure NTP Client Service, Set like follows.Right-click Windows icon and open [run] and input "gpedit.msc" like follows.
|||Select [Administrative template] - [System] - [Windows Time Service] - [Time Providers] on the left Pane, and Open [Enable Windows NTP Client] on the right Pane.|
|||Check a box [Enabled] which is upper-left like follows.|
|||Click to open [Configure Windows NTP Client] on the right Pane.|
Check a box [Enabled] which is upper-left and change values for your environment.
[NtpServer] ⇒ Hostname or IP address of your NTP Server.
The value [0x9] is generally OK to keep default. [0x9] means [0x01] + [0x08].
They mean like follows.
0x01 SpecialIntervalFor [Type] section, It's OK to keep default [NT5DS] if your computer is in a Domain, but if not, change to [NTP].
0x08 NTP request in Client mode
For [SpecialPollInterval], set interval to sync time.
|||Open [Control Panale] - [Administrative tools] - [Services], then Select [Windows Time] Service and click [Start the service] or [Restart the service]. Furthermore, Change [Startup type] to [Automatic] if it is not the value.|