NTP Client Configuration with IPv4 Address
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 the clock synchronization has actually happened, there will be an ‘*’ symbol along with the interface while you give the “show ntp peers
” command.
Topology
Figure 35. SNTP Client and Server
NTP Client for User Management
#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)#commit |
Commit the configuration |
(config)#exit |
Exit from the Configure Mode. |
Validation
#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
NTP Client for User Defined VRF
#configure terminal |
Enter Configure mode. |
(config)#feature ntp vrf vrf1 |
Configure feature on default or management VRF. By default this feature runs on management VRF. |
(config)#ntp enable vrf vrf1 |
This feature enables ntp. This will be enabled in default. |
(config)ntp server 192.168.2.2 vrf vrf1 |
Configure ntp server ip address. |
(config)#commit |
Commit the configuration |
(config)#exit |
Exit from the Configure Mode. |
Validation
#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