Skip to main content
Your first session is free. Claim mine
PacketMentor logo
Open menu
Home
Training
CCNA Library (74)
Browse all CCNA topics →
Network (13)
Device Operations (5)
Network Access (12)
Wireless (6)
IP Connectivity (10)
IP Services (11)
Security (10)
Automation (7)
CCNP Library (15)
LabsPricing
Contact 📞 +1 (860) 556-3010 Book a Call
← All topics
IP Services Foundational

NTP — Network Time Protocol

How every device on the network ends up with the same clock. Covers stratum hierarchy, client and server config, authentication, and why broken NTP makes log correlation a nightmare.

TL;DR
  • NTP keeps all your devices synchronized to a common time source — within milliseconds, often microseconds.
  • Hierarchy works in stratum levels. Stratum 0 is an atomic clock or GPS; each level downstream is one step away.
  • Without synced clocks, log correlation across devices is broken, certificates fail, and Kerberos / 802.1X dies.

Mental model

When you’re investigating an incident at 3 AM, you need to correlate logs across a firewall, a switch, a server, and a load balancer. If those devices’ clocks are off by even 30 seconds, you can’t tell which event caused which. Worse, certificate expiry checks fail, scheduled jobs misfire, and Kerberos refuses to authenticate (it requires ≤5 minute clock skew).

NTP solves this by giving every device on the network the same time, accurate to milliseconds. Set it up once, forget about it for years — until something breaks because someone disabled it.

The stratum hierarchy

NTP organizes time sources in a tree. Each level is called a stratum:

StratumWhat’s thereExamples
0Reference clockAtomic clock, GPS receiver
1Server directly synced to stratum 0time.nist.gov, pool.ntp.org mirrors
2Server synced to a stratum 1 serverYour enterprise NTP server, ISP’s NTP
3Synced to a stratum 2Your branch router
each step adds one
16UnsynchronizedDefault state until first sync

The lower the number, the closer to the reference clock and the more authoritative. Network gear typically ends up at stratum 3 or 4.

Commands

Configure a Cisco router as NTP client

R1(config)# ntp server pool.ntp.org           ! use public pool
R1(config)# ntp server 10.0.99.1              ! or an internal NTP server
R1(config)# ntp server 10.0.99.2 prefer       ! mark one as preferred

! Specify which interface NTP source IP should use
R1(config)# ntp source GigabitEthernet0/0

! Set timezone (optional, but recommended for human-readable logs)
R1(config)# clock timezone EST -5
R1(config)# clock summer-time EDT recurring

Configure a router as an NTP server for downstream devices

R1(config)# ntp master 3       ! announce ourselves as stratum 3

Use this on a central / core router that syncs externally and serves time to internal devices. Don’t run ntp master on every router — pick a few centralized ones.

Verify

R1# show ntp status
R1# show ntp associations
R1# show clock
R1# show clock detail

show ntp associations shows every NTP server you’re peering with, which one is selected, and the current stratum / offset / delay.

The little asterisk in the output matters:

R1# show ntp associations
  address     ref clock     st  when  poll reach delay offset  disp
*~10.0.99.1   .GPS.          1    27   64  377   1.2  -0.05   0.9
 ~10.0.99.2   10.0.99.1      2    35  128  377   1.4   0.12   1.1
  • * = selected (this is the one we’re using right now)
  • + = candidate (eligible but not selected)
  • ~ = static configuration (you configured it manually)
  • # = symmetric peer

Authentication (mostly for sensitive networks)

NTP traffic isn’t authenticated by default — an attacker on the path could feed you bad time. For sensitive deployments:

R1(config)# ntp authenticate
R1(config)# ntp authentication-key 1 md5 supersecret
R1(config)# ntp trusted-key 1
R1(config)# ntp server 10.0.99.1 key 1

The server side needs the matching key. Use NTP authentication on internet-facing routers and security-critical servers.

Common mistakes

  1. No NTP at all. Devices boot to 1993 (or whatever their default is). Logs are useless. Certificates fail. This still happens in 2026 — check show clock on every device after setup.

  2. One NTP server only. If it’s unreachable, your clocks slowly drift. Always configure 2-3 servers.

  3. NTP source-IP doesn’t match access lists. You configure ntp server 10.0.99.1, but the router’s outgoing IP for NTP traffic is on a different interface and gets filtered by an ACL. Set ntp source <interface> explicitly.

  4. Running ntp master on every router. Now every router claims to be a time source. They peer with each other. Stratum levels oscillate. Pick 2 central NTP servers, point everyone else at those.

  5. Forgetting timezone. Router shows time in UTC by default. Operators see UTC in logs and miscorrelate with their local-time wall clock. Set clock timezone for sanity.

  6. Daylight saving without clock summer-time. Logs jump an hour twice a year. Configure summer-time once and the router handles DST automatically.

  7. Trusting the local clock when NTP fails. After a long power outage, a router’s local clock can be wildly off. Don’t trust show clock until show ntp status confirms synchronization.

Lab to try tonight

  1. On a Cisco router with internet access, run show clock. Note how wrong it is.
  2. Configure ntp server pool.ntp.org. Wait 2-5 minutes.
  3. Run show ntp status and show ntp associations. Look for Clock is synchronized and an * next to your server.
  4. Run show clock again. Time should now be correct (to UTC by default).
  5. Set timezone: clock timezone EST -5 (or your zone). Verify show clock updates.
  6. Configure a second router with ntp server <first-router-IP>. Confirm it picks up time from your first router (stratum +1).
  7. Bonus: enable NTP authentication between the two routers and verify it still works.

Cheat strip

ConceptPlain English
NTPSynchronizes clocks across devices
StratumDistance from reference clock. 0 = atomic. 16 = unsynced.
ntp server XTell me to use X as a time source
ntp master NAnnounce myself as a stratum-N server
* in associationsCurrently selected upstream server
clock timezoneDisplay time in local zone (sanity)
clock summer-timeHandle DST automatically
AuthenticationNTP can use MD5/HMAC keys for sensitive environments
PortUDP/123
Master this on a real network

Want this drilled into reflex?

1:1 weekly sessions, live feedback on your labs, and US interview prep — built around the CCNA® exam blueprint. Free first session. No card on file until you decide.

Claim my free session →

One topic per email, every fortnight

VLANs, OSPF, ACLs, subnetting, automation — written like this. Unsubscribe in one click.

We respect your inbox. One email per week, max. Unsubscribe any time.

Start typing — or browse popular topics below.

↑↓ navigate open Searches topics · labs · programs · pages