参考华三官网:
https://www.h3c.com/cn/d_201708/1022816_30005_0.htm#_Toc490127398
不细述原理,直接配置,NTP Server端:
ntp-service enable #开启NTP服务
clock protocol ntp
clock timezone beijing add 8 #默认采用utc时区,北京时间为utc+8
ntp-service unicast-server 120.25.108.11 #配置ntp时间服务器
ntp-service unicast-server pool.ntp.org
ntp-service unicast-server time.windows.com
ntp-service unicast-server time.nist.gov
display ntp-service status #查看ntp状态
display ntp-service sessions #查看ntp会话信息
NTP Client端:
H3C Client:
system-view
clock timezone beijing add 8
clock protocol ntp
ntp-service enable
ntp-service unicast-server 172.16.1.3 //上面设置的NTP Server IP
Cisco Client:
ntp source Vlan1
ntp server 172.16.1.3
中国区授时中心:
使用以前请先ping相应的域名查看网络是否可达,和相应的访问速度
ntp.ntsc.ac.cn 中国国家授时中心
cn.ntp.org.cn 中国授时