Apple macOS (OS X)
- Open System Preferences.
- Choose the "Date & Time" panel.
- Click the lock to make changes.
- Enter your password.
- Select "Date & Time".
- In the box next to "Set date and time automatically", enter
time.google.com
.
Cisco IOS and NX-OS
router# config t
Enter configuration commands, one per line. End with CNTL/Z.
router(config)# no ntp server
router(config)# ntp server time1.google.com
router(config)# ntp server time2.google.com
router(config)# ntp server time3.google.com
router(config)# ntp server time4.google.com
router(config)# copy running-config startup-config
Google Compute Engine
Although you can use Google Public NTP from Compute Engine, you will get better performance from the private cloud servers, which serve the same time using the same smear. Follow these instructions.
Juniper Junos
NTP is configured at the [edit system ntp]
hierarchy level:
system {
ntp {
server time1.google.com;
server time2.google.com;
server time3.google.com;
server time4.google.com;
}
}
Linux
ntpd
or chrony
- Edit
/etc/ntp.conf
or/etc/chrony/chrony.conf
(depending on the service you're using) using your favorite text editor. - Remove or comment out any lines starting with
server
, to prevent your machine from trying to mix smeared and non-smeared servers. Add the lines:
server time1.google.com iburst server time2.google.com iburst server time3.google.com iburst server time4.google.com iburst
Restart the NTP/chrony daemon using
sudo service ntp reload
orsudo service chrony force-reload
.
systemd-timesyncd
- Edit
/etc/systemd/timesyncd.conf
Set the content of the
[Time]
block to:[Time] NTP= FallbackNTP=time.google.com
Leaving
NTP=
uncommented and assigned to an empty string resets the list of NTP servers, including any per-interface assignments. This prevents inadvertently moving between smeared and un-smeared time servers. Configuring Google Public NTP as the fallback server will cause it to be selected as the only NTP server.Restart
systemd-timesyncd
usingsystemctl restart systemd-timesyncd.service
as a user with appropriate permissionsVerify that your system is using Google Public NTP with
timedatectl show-timesync | grep ServerName
. If successfully configured, the output will show:ServerName=time.google.com
Microsoft Windows
- Open the Control Panel.
- Click the "Date and Time" icon.
- Choose the "Internet Time" tab. (This will not be available if your PC is part of a domain. In that case, it will synchronize time with the domain controller. You can configure the controller to use Google Public NTP.)
- Click the "Change settings..." button.
- Check the box "Synchronize with an Internet time server".
- Next to "Server:", enter
time.google.com
.
Microsoft Windows Server
Follow Microsoft's instructions to update your registry.