set system time-zone Asia/Saigon
- Cấu hình NTP
set system ntp server 192.168.221.135
- Kiểm tra NTP hoạt động đúng không.
>show ntp status
root@iLab.SRX# run show ntp status
status=0664 leap_none, sync_ntp, 6 events, event_peer/strat_chg,
version="ntpd 4.2.0-a Wed Nov 12 01:45:13 UTC 2014 (1)",
processor="i386", system="JUNOS12.1X47-D15.4", leap=00, stratum=3,
precision=-17, rootdelay=49.590, rootdispersion=1.560, peer=9012,
refid=192.168.221.135,
reftime=dd06e9fe.95f2d4e7 Wed, Jul 5 2017 11:30:54.585, poll=6,
clock=dd06ea11.e6634925 Wed, Jul 5 2017 11:31:13.899, state=3,
offset=0.000, frequency=0.000, jitter=1.053, stability=0.000
>show system uptime | match current
Current time: 2017-07-05 11:31:46 ICT
>show ntp associations no-resolve
root@iLab.SRX# run show ntp associations no-resolve
remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.221.135 216.239.35.12 2 - 13 64 3 0.365 4.851 2.476
- Troubleshooting
root@iLab.SRX# run show log messages | match ntp
Jun 29 17:36:35 iLab.SRX mgd[5968]: UI_COMMIT_PROGRESS: Commit operation in progress: activating '/var/etc/ntp.keys'
Jun 30 00:37:39 iLab.SRX mgd[5968]: UI_CFG_AUDIT_OTHER: User 'root' set: [system ntp]
-Khi làm Lab trên VMWare workstation cần chú ý đồng bộ lại time.
bằng cách: login web -> system properties -> date time -> edit (chọn đồng bộ cùng NTP) -> OK
No comments:
Post a Comment