华为路由器时间同步_华为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,否则不会同步

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值