Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

NTP · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

Network Time Protocol synchronizes clocks. An NTP client uses a server; peers form symmetric associations. A lab device can serve time using ntp master when specified.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Ensure reachability and a meaningful time source.
  • For authentication, match key ID, algorithm and secret on both sides.
NTP lab server Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Only use as a local reference when the task requests it; prefer a real upstream time source in production.
enable
configure terminal
ntp master [STRATUM]
end
Command parameters
[STRATUM]
NTP master stratum specified by the task.
NTP client Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Point the client at an existing reachable time server. For a local lab time source, use the separate NTP lab server example when requested.
enable
configure terminal
ntp server [SERVER-IP]
end
Command parameters
[SERVER-IP]
IPv4 address of the relevant server.
NTP peer Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp peer [PEER-IP]
end
Command parameters
[PEER-IP]
Remote IPv4 NTP peer address.
Peer configuration — Other NTP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Each peer points to the other device. Both need compatible authentication if configured.
enable
configure terminal
ntp peer [SOURCE-IP]
end
Authenticated local NTP server Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp master [STRATUM]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[STRATUM]
NTP master stratum specified by the task.
Authenticated client Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Point the client at an existing reachable time server. For a local lab time source, use the separate Authenticated local NTP server example when requested.
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp server [SERVER-IP] key [KEY-ID]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[SERVER-IP]
IPv4 address of the relevant server.
Authenticated peer Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp peer [PEER-IP] key [KEY-ID]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[PEER-IP]
Remote IPv4 NTP peer address.
Peer configuration — Other NTP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: KEY-ID, SHARED-SECRET

  • Each peer points to the other device. Both need compatible authentication if configured.
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp peer [SOURCE-IP] key [KEY-ID]
end

Show / Verify

Primary verification Section link
show ntp associations
Example output
*~192.0.2.10   ...  377

An asterisk indicates the selected synchronization peer; reach 377 indicates successful recent polls.

Detailed verification Section link
show ntp status
Example output
Clock is synchronized, stratum 3

Confirm synchronization; it may take several polling intervals.

Detailed verification Section link
show clock detail
Example output
Time source is NTP

Check the current clock source.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
Management receiver test

Inspect the service-specific state. Confirm receipt of a generated log/trap or a permitted poll on the relevant remote collector. Local counters alone do not prove receiver delivery.

show logging
show snmp
show ntp status

Common mistakes

  • Wrong key ID or shared secret.
  • Source cannot reach the server.
  • Assuming configured means synchronized.
  • Using ntp master unnecessarily.

Configuration comparison

NTP client vs server vs peer — Client synchronizes to a server; peer forms symmetric association; ntp master creates a local reference for a requested lab.

Remove configuration — separate, potentially disruptive actions

Remove NTP server

Stops association with this server.

enable
configure terminal
no ntp server [SERVER-IP]
end

Remove peer

Stops the specified peer association.

enable
configure terminal
no ntp peer [PEER-IP]
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?