OcNOS-SP : System Management Guide : System Management Configuration Guide : NTP Server Configuration : Configuration
Configuration
Stratum 1 NTP Master
 
#configure terminal
Enter configure mode
(config)#feature ntp vrf management
Enable feature ntp
(config)#ntp enable vrf management
Enable ntp
(config)#ntp master vrf management
Configure the node as NTP master
(config)#ntp master stratum 1 vrf management
Configure the ntp stratum level as 1 indicating that it is using local clock
(config)#ntp allow 10.12.20.5 vrf management
Configure the ntp client ip address in the ntp allow list
(config)#commit
Commit the configuration
(config)#exit
Exit configure mode
Stratum 2 NTP Server/NTP Client
 
#configure terminal
Enter configure mode.
(config)#feature ntp vrf management
Enable feature ntp.
(config)#ntp enable vrf management
Enable ntp
(config)#ntp master vrf management
Configure the node as NTP Master
(config)#ntp master stratum 2 vrf management
Configure the node as stratum 2 ntp master
(config)#ntp allow 10.12.20.6 vrf management
Configure NTP client ip address in the ntp allow list
(config)#ntp server 10.12.20.7 vrf management
Configure the stratum 1 NTP master ip address for time synchronization
(config)#commit
Commit the configuration
(config)#exit
Exit Configure mode
NTP Client
 
#configure terminal
Enter configure mode.
(config)#feature ntp vrf management
Enable feature ntp.
(config)#ntp enable vrf management
Enable ntp
(config)#ntp server 10.12.20.5 vrf management
Configure ntp server address for the sync to happen
(config)#commit
Commit the configuration
(config)#exit
Exit Configure mode
Validation
Check that NTP Client successfully synchronizes the time with stratum 2 NTP Master.
Check the local clock synchronization in the Stratum 1 NTP Master as mentioned below:
VTEP2#show ntp peer-status
remote refid st t when poll reach delay offset jitter
==============================================================================
*127.127.1.0 .LOCL. 1 l 22 64 377 0.000 0.000 0.000
 
Check the Stratum 2 NTP Master/NTP client synchronization status as mentioned below:
VTEP1#show ntp peer-status
Total peers : 1
* - selected for sync, + - peer mode(active),
- - peer mode(passive), = - polled in client mode,
x - source false ticker
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.12.20.7 LOCAL(0) 2 u 33 64 377 0.145 0.010 0.009
127.127.1.0 .LOCL. 2 l 110m 64 0 0.000 0.000 0.000
 
Check the NTP Client synchronization status as mentioned below:
#show ntp peer-status
Total peers : 1
* - selected for sync, + - peer mode(active),
- - peer mode(passive), = - polled in client mode,
x - source false ticker
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.12.20.5 10.12.20.7 3 u 16 64 377 0.137 -2.596 0.235
Last modified date: 10/19/2023