Junos
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 19
Registered: ‎06-12-2017
0 Kudos

Sync NTP problem.

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  ?

 

Trusted Contributor
Posts: 908
Registered: ‎08-10-2010
0 Kudos

Re: Sync NTP problem.

Hi,

 

 

set server x.x.x.x

set date ntp

 

 

Thats all..

Contributor
Posts: 19
Registered: ‎06-12-2017
0 Kudos

Re: Sync NTP problem.

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
Distinguished Expert
Posts: 575
Registered: ‎08-15-2012
0 Kudos

Re: Sync NTP problem.

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

Distinguished Expert
Posts: 1,940
Registered: ‎06-06-2011
0 Kudos

Re: Sync NTP problem.

[ Edited ]

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..]