Configure NTP using GPS time
You can configure the GPS time as the reference clock for NTP using the command ntp refclock gps.
The GPS time acts as a stratum 0 source, and the Cisco IOS NTP server acts as a stratum 1 device, which in turn provides clock information to its NTP clients (stratum 2 and 3).
Procedure
|
Step 1 |
Use the enable command to enable the router and enter the privileged EXEC mode. Example:
|
|
Step 2 |
Use the configure terminal command to enter the global configuration mode. Example:
|
|
Step 3 |
Use the ntp refclock gps command to configure the NTP reference clock as GPS: Example:
|
|
Step 4 |
Use the ntp refclock gps command to verify the configuration. Example:
|
|
Step 5 |
Use the debug ntp refclock command to troubleshoot the configuration. Example:
|
Feedback