您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

NTP配置实例分析

2024/6/8 12:09:12发布38次查看
一、网络设备作为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配置实例分析的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product