一、实验目的
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服务器,并将该服