NTP Configuration
NTP client, user can configure an association with a remote server. In this mode the client clock can synchronize to the remote server
After configuring the NTP servers, wait a few minutes before you verify that clock synchronization is successful. When clock synchronization has actually happened, there will be an asterisk “*” symbol along with the interface when you give the show ntp peers command.
Topology
Figure 17-25: NTP Client and Server
NTP Client
#configure terminal | Enter configure mode. |
(config)#feature ntp vrf management | Configure feature on default or management VRF. By default this feature runs on management VRF. |
(config)#ntp enable vrf management | This feature enables ntp. This will be enabled in default. |
(config)#ntp server 10.1.1.1 vrf management | Configure ntp server ip address. |
(config)#exit | Exit from the Configure Mode. |
Validation Commands
#show ntp peers
-----------------------------------------------------------
Peer IP Address Serv/Peer
-----------------------------------------------------------
10.1.1.1 Server (configured)
#show ntp peer-status
Total peers : 1
* - selected for sync, + - peer mode(active),
- - peer mode(passive), = - polled in client mode
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.1.1.1 LOCAL(0) 7 u 14 32 37 0.194 -4.870 3.314
Last modified date: 07-14-2023