Junos
Junos

Sync NTP problem.

08.10.17   |  
‎08-10-2017 07:50 AM

Which action would synchronize a new router's clock with NTP Server?

 

[edit system ntp}

user@routers# show

boot-server 172.25.11.254;

 

==================================

* is it necessary to configure the NTP server using " set server 172.25.11.254 " ?

 

*Issue the " set date ntp " operational command ?

 

* Should i Reboot the router  ?

 

4 REPLIES
Junos

Re: Sync NTP problem.

08.10.17   |  
‎08-10-2017 08:22 AM

Hi,

 

 

set server x.x.x.x

set date ntp

 

 

Thats all..

Junos

Re: Sync NTP problem.

08.10.17   |  
‎08-10-2017 08:42 AM

Which Statement would be correct?

 

A- Is it necessary to use " set date ntp " operational command. What if i only  configure the NTP server using " set server 172.25.11.254 " ? 

 

B-Is it necessary to use " set server 172.25.11.254 " command. What if i only  configure " set date ntp " ?

 

 

 

 

 

Highlighted
Junos

Re: Sync NTP problem.

08.11.17   |  
‎08-11-2017 01:53 AM

Hi, 

 

> set date ntp x.x.x.x

is equivalent to ntpdate in *nix and instantly syncs with the NTP server queried and only happens when the command is executed.

# set system ntp server x.x.x.x 

configures the device to query the ntp server for sync at specific poll intervals. ntp will sync on the next poll cycle.

Reboot is not required for ntp sync.

 

Cheers,

Ashvin

Junos

Re: Sync NTP problem.

[ Edited ]
08.15.17   |  
‎08-15-2017 12:16 PM

SmoothCriminal wrote:

Which Statement would be correct?

 

A- Is it necessary to use " set date ntp " operational command. What if i only  configure the NTP server using " set server 172.25.11.254 " ? 

No. That only tells the switch/router to update now. If you configure the ntp server only, it may not sych if they are off by too far, I think 17 minutes. You may see some time drift messages.

 

B-Is it necessary to use " set server 172.25.11.254 " command. What if i only  configure " set date ntp " ?

Technically speaking, no. You can use a dns name e.g pool.ntp.org. You can also use "set date ntp 172.25.11.254" to tell the switch to synch up with a specific ntp server. But yes, you must configure an ntp server to be used.

If you only run the command to update/synch the time without an ntp server configured or specifying an ntp source, then you will simply get a message that no servers can be used. So it will not update.

 

 

 

 

 Great source of information and explanations:

https://www.juniper.net/documentation/en_US/junos/information-products/pathway-pages/system-basics/t...


 

[KUDOS PLEASE! If you think I earned it!
If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]