Powered by Blogger.

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 0.uk.pool.ntp.org prefer
set system ntp server 1.uk.pool.ntp.org
set system ntp server 2.uk.pool.ntp.org

Set the Time/Date


set date ntp 0.uk.pool.ntp.org

Confirm


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,
refid=172.17.27.46,
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

Reference


http://kb.juniper.net/InfoCenter/index?page=content&id=KB15756

Gotcha


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.


http://kb.juniper.net/InfoCenter/index?page=content&id=KB11436
    Blogger Comment
    Facebook Comment