Juniper SRX - How to configure NTP

Below provides the basic commands for configuring the date, time and NTP on your Juniper SRX gateway.

Configure the Time Zone

system time-zone Europe/London

Configure NTP

set system ntp server prefer
set system ntp server
set system ntp server

Set the Time/Date

set date ntp


user@switch> show ntp status
status=0644 leap_none, sync_ntp, 4 events, event_peer/strat_chg,
version="ntpd 4.2.0-a Thu Feb 14 03:06:23 UTC 2008 (1)",
processor="i386", leap=00, stratum=2,
precision=-20, rootdelay=170.961, rootdispersion=21.583, peer=46724,
reftime=cbc2b0d7.b5d026c0 Wed, Apr 30 2008 10:48:23.710, poll=6,
clock=cbc2b0ef.b402b32b Wed, Apr 30 2008 10:48:47.703, state=4,
offset=18.736, frequency=58.615, jitter=1.425, stability=0.080



When running the command 'run show ntp status' you receive the following error.

root@srx100# run show ntp status
localhost: timed out, nothing received
***Request timed out

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.