华为NTP配置实例

匿名 (未验证) 提交于 2019-12-03 00:43:02
一、网络设备作为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
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条时钟不同步原因

原文:http://blog.51cto.com/3227978/2150045

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!