Yuri Slobodyanyuk Blog on Information Security 2024年09月12日
Teach Cisco ASA to speak NTP
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍如何在 ASA5510 上配置 NTP 时间同步,包括一些配置要点和注意事项。

😀ASA5510 配置 NTP 时间同步的相关内容。ASA 不能作为 NTP 服务器,与 IOS 不同。配置时需注意一些细节,如服务器选择、认证等。

😮使用 ntpserver 命令时,若有多个服务器且精度相同,Cisco 认为是同一层级。若 ASA 配置了两个不同层级的 NTP 服务器,会选择层级较低的。

😅认证是可选的,且唯一可选的算法是 MD5。可以同时设置多个信任密钥,可能会依次尝试(需验证)。

🎉实际配置过程,如设置认证密钥、信任密钥、NTP 服务器等,并通过 debug 和验证命令查看结果。

Time is precious, even more when you need accurate logging . Let's configure NTP time synchronization on our ASA 5510. Configs are pretty simple, but worth remembering a thing or two.

Ok then, let's configure it - NTP server is 153.6.3.3, use authentication, MD5.

TokyoASA1(config)#ntp authentication-key 1 md5 CISCO
TokyoASA1(config)#ntp trusted-key 1
TokyoASA1(config)#ntp server 153.6.3.3 ?

  key     Configure peer authentication key     prefer  Prefer this peer when possible     source  Interface for source address   

TokyoASA1(config)#ntp server 153.6.3.3 key 1
TokyoASA1(config)#ntp authenticate

**Debug**:  TokyoASA1#**debug ntp ?**

adjust NTP clock adjustments
authentication NTP authentication
events NTP events
loopfilter NTP loop filter
packets NTP packets
params NTP clock parameters
select NTP clock selection
sync NTP clock synchronization
validity NTP peer clock validity

**Verification**:  TokyoASA1#**sh ntp stat** 

Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 99.9984 Hz, actual freq is 99.9984 Hz, precision is 2**6
reference time is cfa3cae4.3dd6a89e (15:40:20.241 UTC Sun Aug 23 2010)
clock offset is -377969342.9594 msec, root delay is 2.04 msec
root dispersion is 15262547.68 msec, peer dispersion is 16000.00 msec

TokyoASA1# **sh ntp ass**
 address         ref clock     st  when  poll reach  delay  offset    disp

~153.6.3.3 .LOCL. 1 26 64 0 2.0 -37796 16000.

Some debug output comes next :   

TokyoASA1# NTP: Authentication key 1
NTP: 153.6.3.3 reachable
NTP: sync change
NTP: peer stratum change

TokyoASA1#**sh ntp stat** 

Clock is synchronized, stratum 2, reference is 153.6.3.3
nominal freq is 99.9984 Hz, actual freq is 99.9984 Hz, precision is 2**6
reference time is cf9e06b2.e6239822 (06:41:54.898 UTC Wed May 19 2010)
clock offset is -2.9681 msec, root delay is 1.95 msec
root dispersion is 21.58 msec, peer dispersion is 18.57 msec ```

Follow me on https://www.linkedin.com/in/yurislobodyanyuk/ not to miss what I publish on Linkedin, Github, blog, and more.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

ASA5510 NTP 时间同步 认证 服务器选择
相关文章