Pcornel
Networking · IP Services › Time Synchronization

NTP (Network Time Protocol)

Cheat sheet · https://pcornel.dk/topic.php?topic=663

Back to the Topic

Answer

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.

Remember

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.

First checks

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.

Commands

show ntp associations detail
Inspect NTP peer selection, sanity, offset, delay and jitter details.
show ntp associations
Inspect NTP peers and selection.
show clock
Display the device date and time.
ntp server <ip>
Synchronize time from an NTP server.
ntp master <stratum>
Make the router act as an authoritative NTP source at the given stratum.
ntp source <interface>
Use a fixed source interface for NTP packets.
ntp authenticate
Enable NTP authentication.
ntp authentication-key <id> md5 <key>
Define an NTP authentication key; use SHA where the platform supports it.
ntp trusted-key <id>
Mark an NTP authentication key as trusted.
show ntp status
Display NTP synchronization status.
show clock detail

Verify in this order

route/source/UDP123 → valid peer replies → association history → selected source → synchronized system status → stable clock consumers

Where it usually breaks

missing replies → invalid/authentication-rejected peer → no selection → unstable discipline → consumer/timezone mismatch

NTP · operational reference

NTP field/stateInterpretation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=663

Confirmation

Confirm action

Continue?