Use it when a router or switch should serve time to other devices.
Server
An 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.
1. A Cisco device can serve time (ntp master or synced to upstream).
2. Restrict who can query.
3. Avoid ntp master unless isolated.
4. Downstream stratum = upstream + 1.
5. Monitor accuracy.
upstream sync → serve clients → clients sync
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ntp associationsVerification & 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.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Verify clock/time zone intent.
2. Verify association reachability and source.
3. Inspect selected peer, stratum, offset and jitter.
4. Confirm authentication state.
5. Correlate log timestamps after convergence.
Step 2 Common mistakes Narrow the fault
- Using
ntp masterin production. - Open NTP servers on the internet (amplification abuse).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show clockis observation, not proof of synchronization- NTP association, selection and synchronized system state are separate
- Offset, delay, dispersion and jitter explain source quality
- PTP depends on domain, grandmaster selection and clock role
- ACL/CoPP, VRF/source, UDP 123, one-way delay and hardware support can be the first boundary.
show ntp status— stratum servedshow running-config | include ntp master|access-group— server config
ReferenceWhat it is1 section · depth on demand
How it works
An NTP server answers time requests on UDP 123. A Cisco router becomes a server automatically once it is synchronised; ntp master <stratum> makes it serve its own clock (use only as a last resort or in labs). Limit who may query with ntp access-group.
ReferenceImportant terms & boundaries2 sections · depth on demand
Key operational limits
- Association does not equal synchronization
- Authentication validates the configured source; it does not encrypt NTP.
In depth
Worked internal hierarchy
Internet / GPS sources (stratum 1)
│
CORE1 ─── peer ─── CORE2 stratum 2: sync upstream, peer each other
│ │
distribution and access switches stratum 3: ntp server CORE1 + CORE2
! CORE1
ntp server 192.0.2.10
ntp server 192.0.2.11
ntp peer 10.255.0.2 ! CORE2 loopback
ntp source Loopback0
ntp access-group peer 10 ! upstream servers + CORE2
ntp access-group serve-only 20 ! internal clients
access-list 10 permit 192.0.2.10
access-list 10 permit 192.0.2.11
access-list 10 permit 10.255.0.2
access-list 20 permit 10.0.0.0 0.255.255.255
Access-group types
| Type | Allows |
|---|---|
peer | Time requests, control queries, and synchronising this device to the source |
serve | Time requests and control queries, no synchronisation to them |
serve-only | Time requests only |
query-only | Control queries only |
When any access group is configured, sources not permitted by a matching group are refused — forgetting the upstream servers in peer breaks the server's own synchronisation.
Serving only when synchronised
An IOS device answers clients with its own stratum + 1 once synchronised; while unsynchronised it reports stratum 16 and clients ignore it. ntp master 8 makes the device a local source of last resort; a high stratum keeps it from winning while real sources exist, but if all upstream sources fail the whole network drifts together from that one clock.
Hardening
ntp disableon user-facing and internet-facing interfaces.- Never answer the internet: open NTP servers are abused for reflection attacks.
- Verify from a client:
show ntp associationsshows the core withst 2andreach 377.
ReferenceConfiguration & state1 section · depth on demand
Configuration
ntp server 192.0.2.10 prefer
ntp source Loopback0
ntp access-group peer 10
ntp access-group serve-only 20
show ntp associations
Documented example, not captured output.
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 → Server. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%