Configuring and Verifying NTP on Cisco Devices
Configure an NTP client using `ntp server [ip_address]` and verify the synchronization status using `show ntp status` and `show ntp associations`.
Configuring the NTP Client
To point a Cisco router or switch to an NTP server, simply use the global configuration command: `ntp server [ip_address_of_server]`.
Verifying Synchronization
Use `show ntp status` to check if the clock is synchronized and view the stratum level. Note that synchronization can take a few minutes.
Viewing NTP Associations
The command `show ntp associations` provides a detailed list of all configured NTP servers, their stratum levels, and their reachability status.
❓ Frequently Asked Questions
How long does NTP take to sync?
It can take up to 10-15 minutes for a Cisco device to fully synchronize with an NTP server.
Can a Cisco router act as an NTP server?
Yes, by configuring the `ntp master [stratum_level]` command, a router can serve time to other devices.
What does a '*' mean in show ntp associations?
The asterisk (*) indicates that the device has successfully synchronized with that specific NTP peer.