「HUAWEI-VRP」- 配置 NTP 服务

作为 NTP Client 运行(同步时间)

前置条件:
1)确保网络设备能够访问 NTP Server;

为了让日志能够正常显示:

# 通过手动方式来修改时间;

<Huawei>clock timezone BJ add 08:00:00
<Huawei>clock datetime 10:20:29 2013-04-11

# 通过 NTP Server 自动同步系统时间;

[system-view] ntp-service unicast-server 10.0.0.1

# 查看当前系统时间

<Huawei>display clock

作为 NTP Server 运行

ntp-service enable

ntp-service autherication enable
ntp-service autherication-keyid 1 authentication-mode md5 Huawei@123

ntp-service refclock-master 1 # 配置层次

display ntp status

配置其他设备使用该服务:

ntp unicast-server X.X.X.X
ntp autherication enable
ntp autherication-keyid 1 authentication-mode md5 Huawei@123

display ntp status