Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Server

Direct answer

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.

When to use this

Use it when a router or switch should serve time to other devices.

First 30 seconds

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.

Operational verification

upstream sync → serve clients → clients sync

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Key commandshow ntp associations
Scope / prerequisiteUse it when a router or switch should serve time to other devices.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 master in production.
  • Open NTP servers on the internet (amplification abuse).
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • show clock is 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.
Key checks
  • show ntp status — stratum served
  • show 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

TypeAllows
peerTime requests, control queries, and synchronising this device to the source
serveTime requests and control queries, no synchronisation to them
serve-onlyTime requests only
query-onlyControl 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 disable on user-facing and internet-facing interfaces.
  • Never answer the internet: open NTP servers are abused for reflection attacks.
  • Verify from a client: show ntp associations shows the core with st 2 and reach 377.
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 5905

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%
Confirmation

Confirm action

Continue?