Log into the device with Telnet or SSH. Enter privileged mode by typing enable and entering your enable password.
Enable DNS lookup
Make sure DNS lookups are enabled on your device so it can be synced to an NTP server. Run the following command. Replace 8.8.8.8 8.8.4.4
with the DNS servers you’d like to use.
enable ip domain lookup ip name-server 8.8.8.8 8.8.4.4 exit
Set the clock, time zone, and NTP server
There are four locations shown as examples. To see the available global zones from NTP Pool, refer to https://www.ntppool.org/zone/@.
For each example, replace clock set 09:00:00
with the current time, clock set month January
, clock set day 01
and clock set year 2018
at the time the setting was applied. If you use a zone not shown below, also update clock timezone -5
.
- North America, Eastern Time (UTC-5)
- Europe, Central European Time (UTC+1)
- Brazil, Brasília (UTC-3)
- Australia, Sydney (UTC+11)
North America (specifically Eastern Time, UTC-5):
enable configure clock set time 09:00:00 clock set month January clock set day 01 clock set year 2018 clock timezone -5 sntp server pool.ntp.org exit
Europe (specifically Central European Time, UTC+1):
enable configure clock set time 09:00:00 clock set month January clock set day 01 clock set year 2018 clock timezone +1 sntp server pool.ntp.org exit
Brazil (specifically Brasília, UTC-3):
enable configure clock set time 09:00:00 clock set month January clock set day 01 clock set year 2018 clock timezone -3 sntp server pool.ntp.org exit
Australia (specifically Sydney, UTC+11):
enable configure clock set time 09:00:00 clock set month January clock set day 01 clock set year 2018 clock timezone +11 sntp server pool.ntp.org exit
Confirm the NTP settings
To make sure the settings took effect, run the following command: show clock
Synchronize with an NTP server
To make sure the unit has synchronized with an NTP server, run the following command: show sntp status
Exit configuration mode and save changes
Lock in your changes so they'll survive a reboot of the router: copy running-config startup-config