温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

NTP配置实例分析

发布时间:2022-01-10 17:42:13 来源:亿速云 阅读:152 作者:柒染 栏目:网络安全

今天就跟大家聊聊有关NTP配置实例分析,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

一、网络设备作为NTP服务器配置。

1、配置NTP主时钟
ntp-service refclock-master 2
2.开启NTP认证
ntp-service authentication enable
3、配置NTP时钟源本地接口,可以不配置。
ntp-service source-interface loopback0
4、配置NTP服务器服务认证密码
ntp-service authentication-keyid 1 authentication-mode md5 cipher admin
5、配置可信秘钥号
ntp-service reliable authentication-keyid 1
6、开启NTP服务器功能
undo ntp-service disable
二、网络设备作为NTP客户端配置。

1.开启NTP认证
ntp-service authentication enable
2、配置NTP服务认证密码
ntp-service authentication-keyid 1 authentication-mode md5 cipher admin
3、配置秘钥号

ntp-service reliable authentication-keyid 1

4、配置NTP服务器地址
ntp-service unicast-server  192.168.1.1

三、查看NTP各种状态
1、查看本地设备的NTP会话信息。

display ntp-service sessions
2、查看本地设备NTP会话的详细信息
display ntp-service sessions verbose
3、查看从本地设备到参考时钟源的路径
display ntp-service trace
4、查看NTP报文的统计信息
display ntp-service statistics packet
5、查看最新的10条时钟不同步原因

display ntp-service event clock-unsync
查看最新的10条时钟不同步原因

注意:H3C的设备要手动指定clock protocol ntp,否则不会同步

看完上述内容,你们对NTP配置实例分析有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注亿速云行业资讯频道,感谢大家的支持。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ntp
AI