Configure NTP using GPS Time
From IOS XE release 17.6.1, you can set up Network Time Protocol (NTP) to use GPS time as the reference clock using the ntp refclock gps command.
The cellular modem-based GPS works only with cellular and not with the GPS on Dead Reckoning module.
Before you begin
-
Enable the cellular modem-based GPS and verify that it is working. To know more about cellular modem-based GPS, see Configuring GPS in the Cellular Pluggable Interface Module Configuration Guide.
-
Verify that you have a location fix for this feature to work using the show cellular cellualr slot gps command.
-
Enable National Marine Electronics Association (NMEA) streaming. For more details on enabling NMEA, see the Enable NMEA Data Streaming section in the Cellular Pluggable Interface Module Configuration Guide.
-
Set up GPS time as a stratum 0 source and configure the Cisco IOS NTP server as a stratum 1 device to provide accurate time to NTP clients.
Procedure
Step 1 |
Use the configure terminal command to enter global configuration mode. Example:
|
Step 2 |
Use the controller cellular comamnd to configure cellular location. Example:
|
Step 3 |
Use the lte gps nmea command to enable National Marine Electronics Association (NMEA) streaming. Example:
|
Step 4 |
Use the end command to exit NMEA configuration mode and return to privileged EXEC mode. Example:
|
Step 5 |
Use the configure terminal command to enter global configuration mode. Example:
|
Step 6 |
Use the ntp refclock gps interface Cellular 0/4/0 commad to configure the NTP reference clock as GPS. Example:
|
Step 7 |
Use the exit command to exit from the configuration prompt. Example:
|
Step 8 |
(Optional) Use the show cellular cellualr slot gps command to view the GPS information. Example:
|
Step 9 |
(Optional) Use the show ntp associations command to view the network time protocol associations. Example:
|
Step 10 |
(Optional) Use the show clock command to display the current time and clock details. Example:
|
Step 11 |
(Optional) Use the debug ntp refclock command to troubleshoot the configuration. Example:
|