Use this Topic for missing NTP replies, rejected sources, unstable synchronization or inconsistent timestamps; separate transport, source validity, clock discipline and consumer formatting.
NTP (Network Time Protocol)
NTP selects usable time sources and synchronizes the system clock. Read association reach, selected peer and system status separately. PTP domains/grandmaster/clock-role behavior belongs to the separate PTP Topic.
Read association history and selected source, then confirm system synchronization. Correlate route/source, polling interval and offset without changing the clock or authentication.
route/source/UDP123 → valid peer replies → association history → selected source → synchronized system status → stable clock consumers
Log timestamps do not match other devices; certificate validation or authentication fails because of time.
Possible stored cause: The NTP server is unreachable from the configured source, authentication fails, or the server itself is unsynchronised.Inspect associations/peer selection and correlate timestamps in downstream logs.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ntp server <ip>Primary Commands
Configuration and operational commands for this Topic.
ntp server <ip>ReferenceSynchronize time from an NTP server.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedntp master <stratum>ReferenceMake the router act as an authoritative NTP source at the given stratum.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedntp source <interface>ReferenceUse a fixed source interface for NTP packets.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedntp authenticateReferenceEnable NTP authentication.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedntp authentication-key <id> md5 <key>ReferenceDefine an NTP authentication key; use SHA where the platform supports it.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedntp trusted-key <id>ReferenceMark an NTP authentication key as trusted.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ntp associationsShowInspect NTP peers and selection.
Use when: Time sync verification.
IOS/IOS XE · mixedshow clockShowDisplay the device date and time.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedshow ntp statusShowDisplay NTP synchronization status.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedshow ntp associations detailShowInspect NTP peer selection, sanity, offset, delay and jitter details.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixedHow to read the output
show ntp associationsLook first: selection marker, peer, stratum, reach, delay/offset/jitter
Healthy: A suitable peer is selected and reach/offset are plausible.
Warning: No selected peer, reach decay, high offset or unsynchronized upstream.
Does not prove: Association presence alone does not prove local clock synchronization.
show ntp associations detailLook first: selection marker, peer, stratum, reach, delay/offset/jitter
Healthy: A suitable peer is selected and reach/offset are plausible.
Warning: No selected peer, reach decay, high offset or unsynchronized upstream.
Does not prove: Association presence alone does not prove local clock synchronization.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Log timestamps do not match other devices; certificate validation or authentication fails because of time.
Step 1 First 30 seconds Verify boundary
Immediate answer: Read association history and selected source, then confirm system synchronization. Correlate route/source, polling interval and offset without changing the clock or authentication.
Verification chain: route/source/UDP123 → valid peer replies → association history → selected source → synchronized system status → stable clock consumers
Boundary: A configuration line or a single local display does not show the downstream result. Preserve observations before any intervention.
Step 2 NTP: illustrative reach and controlled outage test Verify boundary
Illustrative interpretation, not captured output:
| Observation | What to conclude |
|---|---|
reach 377 | Octal history indicates replies for the last eight poll slots; not 377 packets or a synchronization guarantee |
reach 0 immediately after association creation | No successful history yet; compare time and polling before diagnosing a lasting outage |
Selected association plus synchronized show ntp status | Current selection and system synchronization agree; accuracy still needs its own context |
Use an isolated test device with an approved time source. Record several samples and configured polling intervals. For a negative test, block only that lab device's server exchange and observe the history age as polls fail. Other available sources and clock holdover can keep the system synchronized for a time; do not predict immediate unsynchronization. Restore the exact filter and confirm replies, selection and system status stabilize again.
Save exact prior server/source/authentication/filter settings. Do not test by changing production clocks or authentication keys. Examples describe expected observations, not an executed lab or a new technical verification.
Step 3 Verification and output interpretation Verify boundary
Use show ntp associations and show ntp status (or the canonical device equivalents) together. Association output should show reachable intended sources, sensible stratum/delay/offset/jitter and a selected synchronization peer. Status output should identify synchronized state, reference source and current stratum. Compare values over time rather than treating one offset sample as a permanent condition. If logs from multiple devices are being correlated, verify each device’s actual synchronized state rather than merely comparing configured NTP server addresses. For authentication, show the association is accepted with the intended key/trust relationship.
Step 4 NTP: no replies, rejected candidate or unstable clock Narrow the fault
1. No usable replies: inspect the configured source/VRF, route, UDP/123 policy, server state and NTP association observations. A low reach immediately after startup is not automatically a persistent fault; compare samples against the polling interval.
2. Replies arrive but no selected source: inspect authentication, access restrictions, server synchronization/stratum and association detail. A rejected candidate is different from an unreachable server.
3. Source selected but system not stably synchronized: inspect show ntp status and time-series offset, delay and dispersion; inspect jitter where the implementation exposes it. Do not combine fields from different times or assume a field absent from this release exists.
4. Clock appears correct but logs disagree: separate underlying UTC synchronization from time-zone/display settings and the timestamps of the consuming system. Lower stratum is hierarchy, not an independent accuracy guarantee.
Do not force the clock, clear associations or disable authentication just to hide the symptom. These interventions can change evidence and affect dependent services. Avoid exposing authentication key material in logs or examples.
Step 5 NTP quick diagnostic branches Narrow the fault
Start by comparing association detail with system status for the same source and polling window. No replies point toward route/source/VRF, UDP policy, peer availability or authentication validity. Replies with no selected source need candidate-validity investigation. Selection with unstable system status needs offset/delay/dispersion observations over time, not a forced clock setting.
When the clock is synchronized but timestamps still differ, inspect the consumer and display timezone. Use the separate observation/recovery checklist for a full collection sequence. Do not repeat the entire checklist at every branch or substitute PTP role/domain checks for NTP state.
Step 6 NTP observation and recovery checklist Narrow the fault
1. Capture show clock detail and the device/time context.
2. Read show ntp associations and supported association detail for source, reach and selection.
3. Read show ntp status for system synchronization; compare several samples and polling intervals.
4. Investigate route/source/VRF, UDP/123, peer validity and authentication without exposing keys.
5. Verify stable UTC synchronization separately from time-zone formatting and downstream log consumers.
Use only the isolated outage/recovery procedure in this Topic for a negative test; do not move production clocks or globally disable authentication.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The official Cisco source documents this command in a bounded Cisco product/release or feature context.
command output · Documented exampleNTP local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
An NTP client synchronises its clock from configured servers (ntp server <ip>) and adjusts gradually; show ntp associations and show ntp status show which server it uses and how far off it is.
Subtopic ServerAn NTP server provides time to clients; an IOS device can serve time to others once it is synchronised itself, or with ntp master as a last-resort local source.
Subtopic StratumNTP stratum is the distance from a reference clock: stratum 1 servers are attached to GPS/atomic sources, each hop adds one, and stratum 16 means unsynchronised.
Subtopic NTP AuthenticationNTP authentication uses shared keys (ntp authentication-key, ntp trusted-key, ntp authenticate) so a device only accepts time from servers that prove they know the key.
Recognize the symptom, then prove the boundary
Observed symptom → candidate boundary → discriminating check → original-test closure. A signature narrows the search; it never proves root cause by itself.
NTP associations exist but no peer is selected
Configured/known associations are visible, yet the local clock has no usable selected source.
reachability/reach decay · upstream unsynchronized · authentication · stratum/selection sanity
check reach/selection marker → verify upstream synchronization → compare offset/jitter and authentication state
Association presence does not prove clock synchronization.
Repeat the original failing test after the minimum controlled change before calling recovery verified.NTP operational boundary
Boundary-first guidance: prove the nearest state before moving outward.
Fast answer
Separate reachability, association, selection and clock discipline. An NTP association alone does not prove synchronized time.
Boundary chain
IP reachability → UDP/123 path → association → candidate selection → stratum/reference → clock discipline
A selected peer/reference is reachable and the local clock reports synchronized state with plausible offset/stratum.
Reachability, authentication, unsynchronized upstream, source-interface and selection issues are isolated independently.
Seeing a peer in the association table does not prove it is selected or that the device clock is synchronized.
A displayed time, reachable server or reach 377 alone does not prove synchronization. Reach is octal poll history. Compare selected source with system status and offset/delay/dispersion over time. Authentication configuration is not an observed authentication result.
Read show clock detail, show ntp associations, supported association detail and show ntp status. Compare polling history, peer selection and system state over time. Inspect source/VRF, UDP/123, authentication and server validity without exposing keys; separate UTC state from display timezone.
ReferenceWhat it is2 sections · depth on demand
What it is
NTP synchronizes device clocks to selected time sources and reports hierarchy through stratum and reference state.
NTP clock synchronization scope
NTP associates with candidate time sources, selects a usable reference and disciplines the system clock. Inspect peer exchange, source selection and system status separately. The displayed local time also includes formatting/time-zone choices that are not NTP selection state.
This Topic covers NTP. PTP grandmaster election, clock roles, domains and hardware timestamping belong in the separate [PTP Topic](topic.php?topic=664&view=deep), not in an NTP verification chain.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use it to make logs, certificates, AAA records and distributed troubleshooting share trustworthy time.
When to investigate NTP
Use this Topic when NTP replies are missing, a candidate is rejected, no source is selected, system synchronization is unstable or application/log timestamps diverge. Freeze device, source/VRF and time window. Determine whether the first issue is transport, NTP validity/selection, system-clock discipline or a timestamp consumer before changing configuration.
ReferenceHow it works1 section · depth on demand
NTP: observe selection before changing authentication
Scope: Cisco IOS / IOS XE NTP client/server association and system-clock synchronization. PTP grandmaster, domain and hardware timestamping are a different protocol; see [PTP](topic.php?topic=664&view=deep).
ntp authenticate changes configuration. It is not a read-only status command and does not by itself show a peer is authenticated or selected. Read show ntp associations, show ntp associations detail and show ntp status; correlate with show clock detail and sanitized source/VRF/server configuration. Confirm supported fields and units on the deployed release.
Association reachability, peer selection and system synchronization are distinct observations. A plausible local clock or a reachable configured server does not establish synchronization. Authentication requirements, key agreement, access policy and route/source selection must be checked against actual peer state, not inferred from a single configuration line.
Reference: Cisco NTP association/status interpretation.
ReferenceImportant terms & boundaries5 sections · depth on demand
Key operational limits
NTP operational boundaries
- Clock display, association reachability, source selection and system synchronization are separate observations.
reachis an octal polling-history field; inspect it with polling interval and elapsed time.- Lower stratum is not an absolute accuracy score.
- Source/VRF, route, UDP/123 policy, authentication and server synchronization affect usable candidates.
- Inspect offset, delay and dispersion in the command's stated units; jitter visibility depends on the implementation.
- PTP domain/grandmaster fields are not NTP observations. NTP authentication changes and clock adjustments are interventions, not passive checks.
In depth
NTP on Cisco IOS XE: client, peer and server roles
The Catalyst 9300 administration guide describes the NTP association modes:
| Mode | Command | Behaviour |
|---|---|---|
| Client | ntp server <ip> | The device polls servers and picks one; the server keeps no client state |
| Symmetric active | ntp peer <ip> | Both devices poll each other; for mutually redundant servers |
| Broadcast client | ntp broadcast client (interface) | Listens without polling; same subnet as the broadcaster |
| Authoritative server | ntp master | Serves time without an outside source |
The guide warns that ntp master can override valid sources and cause instability when used on several devices. It also notes that Cisco's implementation doesn't provide stratum 1 service.
C9300(config)# ntp authentication-key 1 hmac-sha2-256 <key-string>
C9300(config)# ntp authenticate
C9300(config)# ntp trusted-key 1
C9300(config)# ntp server 10.10.50.5 key 1 prefer
C9300(config)# ntp server 10.10.50.6 key 1
C9300(config)# ntp source Loopback0
C9300(config)# access-list 10 permit 10.10.50.5
C9300(config)# access-list 10 permit 10.10.50.6
C9300(config)# ntp access-group peer 10
C9300# show ntp associations
address ref clock st when poll reach delay offset disp
*~10.10.50.5 192.0.2.123 2 41 64 377 0.812 -0.214 1.104
+~10.10.50.6 192.0.2.124 2 17 64 377 0.903 0.318 1.212
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
C9300# show ntp status
Clock is synchronized, stratum 3, reference is 10.10.50.5
Documented details
| Topic | Detail |
|---|---|
| Defaults | No associations, authentication off, broadcast off, no access control |
| Source address | Set by the outgoing interface unless ntp source or the per-server source keyword is used |
| Access groups | peer, serve, serve-only, query-only with a standard ACL; once any group is configured, only listed access is granted |
| Authentication algorithms | md5, cmac-aes-128, hmac-sha1, hmac-sha2-256; the guide doesn't recommend MD5 |
| Selection | A device never synchronises to an unsynchronised source and ignores one far off from the others |
Reading show ntp associations
reach 377 (octal) means the last eight polls were answered. * marks the selected source. A low reach value or a missing * means the device isn't synchronising.
Troubleshooting
| Symptom | Cause |
|---|---|
Clock is unsynchronized | Server unreachable, ACL blocking UDP 123, or authentication key mismatch |
| Synchronisation takes long | Normal: NTP needs several polls before it trusts a source |
| Wrong time shown, NTP synchronised | Time zone or summer-time configuration |
Documented example, not captured output.
State model and protocol mechanics
Network Time Protocol exchanges timestamp samples so a client can estimate clock offset and network delay relative to candidate sources. Stratum expresses distance from an authoritative reference clock, not “quality” as a standalone score. A device can maintain multiple associations while selecting one system peer/source to discipline its clock; other associations may remain candidates, falsetickers or unusable depending on reachability and sample quality. Jitter and dispersion describe uncertainty/stability over time. Large clock errors, authentication mismatch or poor network behavior can prevent synchronization even when UDP/123 packets are exchanged. Accurate time is operationally important because logs, certificates, authentication systems and event correlation depend on a consistent timeline.
Limits and common misconceptions
An NTP server replying to ping does not show UDP/123 or NTP selection works. A reachable NTP association does not necessarily mean the local clock is synchronized to it. Lower stratum does not automatically mean lower latency, lower jitter or better administrative trust. Correct timezone display does not show clock synchronization, and an accurate-looking wall clock is weak evidence without synchronization state. NTP can improve temporal consistency but does not replace application-level transaction ordering or monotonic timers. Keep network reachability, NTP association, selected reference and local clock state separate.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Use multiple reliable time sources where appropriate and prefer a clear hierarchy rather than every device independently choosing arbitrary Internet servers. Configure source interfaces/VRFs when management routing requires them, and use authentication where trust requirements call for it. Treat stratum configuration and preferred-source knobs as policy, not a substitute for source quality. Consider the behavior of large time corrections: some systems step the clock while others slew it, and abrupt changes can affect applications. Network devices that serve downstream clients should themselves have a stable upstream reference. Keep timezone/display settings separate from the underlying UTC clock synchronization mechanism.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → Time Synchronization → NTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%Official Cisco vendor documentation reviewed for bounded reference claims: NTP associations, source and synchronization state. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/syst-mgmt/b-system-management.pdf · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
NTP evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show ntp status | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | route/source → NTP association → candidate selection → synchronized clock → timestamp consumers | application success |
NTP · operational reference
Compact state and interpretation boundaries for fast lookup.
| NTP field/state | Interpretation |
|---|
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
NTP Fast Check
Peer reachability, selected source, stratum og offset.
Quick checks
show clockshow ntp associationsshow ntp status- Verify source/interface/VRF
- Check UDP/123 path
Red flags
- Large offset
- No selected peer
- Reachability 0
- Wrong source/VRF