在数据中心网络中设置NTP时钟源,为全网提供NTP时钟源服务。数据中心所有网络设备的时钟与此NTP时钟源同步。将全网的NTP工作模式设置为单播服务器/客户端模式,配置CS1为主时间服务器,且CS1的时间已经同步到权威时钟(卫星定位系统)。配置CSDS和AS为客户端。为了保证安全性,建议使能NTP认证功能。
工具/原料
电脑一台
交换机
方法/步骤
1、在CS1上配置NTP主时钟并启动NTP认证功能,使能CS1的NTP服务器功能。&l隋茚粟胫t;CS1>system-view[~CS1]荏鱿胫协ntprefclock-master1[*CS1]ntpauthenticationenable[*CS1]ntpauthentication-keyid42authentication-modehmac-sha256Hello@123456[*CS1]ntptrustedauthentication-keyid42[*CS1]undontpserverdisable[*CS1]commit
2、在DS1上指定CS1为NTP服务器。(其他的配置类似)<DS1>system-view[~DS1]ntpauthenticationenable[*DS1]ntpauthentication-keyid42authentication-modehmac-sha256Hello@123456[*DS1]ntptrustedauthentication-keyid42[*DS1]ntpunicast-server10.100.1.1authentication-keyid42[*DS1]commit