H3C核心交换机同步外网时间,再作为内网NTP服务器,其它交换机再从核心交换机同步时间,以保障内网设备时间统一
核心交换机配置:
[H3C]clock protocol ntp #时钟协议ntp开启
[H3C]clock timezone xi'an add 8:00:00 #时区设置xi'an,并设置+8为北京时间
[H3C]ntp-service enable #开启ntp服务
[H3C]ntp-service unicast-server 120.25.115.20 #配置同步阿里云ntp
[H3C]ntp-service unicast-server 203.107.6.88 #配置同步阿里云ntp
[H3C]dis ntp-service status #查看ntp服务状态
[H3C]dis ntp-service sessions #查看ntp会话列表
其它交换机配置:
<sw0>clock timezone xi'an add 8:00:00 #时区设置xi’an,并设置+8为北京时间
[sw0]ntp-service unicast-peer 10.1.1.1 #ntp配置同步10.1.1.1核心交换机时间
国内公共NTP服务器地址
国家授时中心ntp服务器:
ntp.ntsc.ac.cn 114.118.7.161 114.118.7.163
中国NTP快速授时服务:
cn.ntp.org.cn 114.67.237.130 58.220.133.132
阿里云NTP服务器:
ntp.aliyun.com 203.107.6.88
ntp1.aliyun.com 120.25.115.20
腾讯云NTP服务器:
ntp.tencent.com 106.55.184.199
ntp2.tencent.com 111.230.189.174
ntp3.tencent.com 106.55.184.200
ntp4.tencent.com 134.175.254.134
ntp5.tencent.com 134.175.253.104
windows时间服务器:
time.windows com 52.231.114.183
Apple时间服务器:
time.apple.com 17.253.114.125