H3C NTP 实验


一、实验目的

1、实验需要完成全网互通
2、客户端通过NTP协议和服务端的时间同步


二、实验拓扑图

在这里插入图片描述

三、实验步骤

(1)按照图1-12配置各接口的IP地址,并确保路由可达,具体配置过程略。
(2)配置NTP server的本地时钟作为参考时钟
#开启NTP服务。
<NPT server> system-view
[NPT server] ntp-service enable
#设置本地时钟作为参考时钟,层数为2。
[NPT server] ntp-service refclock-master 2
(3)配置NPT client
#开启NTP服务。
<NPT client> system-view
[NPT client] ntp-service enable
#配置通过NTP协议获取时间。
[NPT client] clock protocol ntp
#在NPT client上启动NTP验证功能。
[NPT client] ntp-service authentication enable
#创建编号为42的NTP验证密钥,密钥值为aNiceKey,以明文形式输入。
[NPT client] ntp-service authentication-keyid 42 authentication-mode md5 simple aNiceKey
#配置编号为42的密钥为可信密钥。
[NPT client] ntp-service reliable authentication-keyid 42
#设置NTP server为NPT client的NTP服务器,并将该服
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值