Juniper – How to configure NTP
Below provides the basic commands for configuring the date, time and NTP on your Juniper
Set the time
either
set date ntp
or
set date YYYYYMMDDHHMM
Set the name servers
set system name-server your.name.server.1
set system name-server your.name.server.2
commit
Configure the Time Zone
set system time-zone America/New_York
Configure NTP
set system ntp server 0.centos.pool.ntp.org prefer
set system ntp server 1.centos.pool.ntp.org
set system ntp server 2.centos.pool.ntp.org
Set the Time/Date
set date ntp 0.centos.pool.ntp.org
Confirm
user@switch> show ntp status
status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version=”ntpd 4.2.0-a Tue Dec 13 15:04:13 2016 (1)”,
processor=”octeon”, system=”JUNOS15.1X49-D70.3″, leap=11, stratum=16,
precision=-18, rootdelay=0.000, rootdispersion=0.525, peer=0,
refid=INIT, reftime=00000000.00000000 Thu, Feb 7 2036 1:28:16.000,
poll=4, clock=e0491cc4.d5c7256d Fri, Mar 29 2019 18:37:56.835, state=0,
offset=0.000, frequency=0.000, jitter=0.004, stability=0.000
Reference
http://kb.juniper.net/InfoCenter/index?page=content&id=KB15756
SRX Gotcha
When running the command ‘run show ntp status’ you receive the following error.
This issue arises when the firewall filter (that is applied to the loopback interface) denies the traffic. Further details can be found at the following link.