华为交换机NTP时间同步配置
的有关信息介绍如下:在数据中心网络中设置NTP时钟源,为全网提供NTP时钟源服务。数据中心所有网络设备的时钟与此NTP时钟源同步。
将全网的NTP工作模式设置为单播服务器/客户端模式,配置CS1为主时间服务器,且CS1的时间已经同步到权威时钟(卫星定位系统)。配置CS2、DS和AS为客户端。为了保证安全性,建议使能NTP认证功能。
在CS1上配置NTP主时钟并启动NTP认证功能,使能CS1的NTP服务器功能。
[~CS1] ntp refclock-master 1
[*CS1] ntp authentication enable
[*CS1] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
[*CS1] ntp trusted authentication-keyid 42
[*CS1] undo ntp server disable
[*CS1] commit
在DS1上指定CS1为NTP服务器。(其他的配置类似)
[~DS1] ntp authentication enable
[*DS1] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
[*DS1] ntp trusted authentication-keyid 42
[*DS1] ntp unicast-server 10.100.1.1 authentication-keyid 42
[*DS1] commit