The official guide to configure the clock and the ntp service is great but it’s difficult to guess what the config bare minimum has to be, so I summed it up here.
Set the time, date, timezone and DST
Just set the actual time this device should show:
<huawei> clock timezone berlin add 01:00:00 clock daylight-saving-time berlin repeating 01:00 last Sun Mar 01:00 last Sun Oct 01:00 clock datetime 14:51:00 2022-05-04
Configure NTP synchronization
You want to configure a time server to get time synchronized via NTP but you don’t want this device to work as an ntp server itself.
[huawei] ntp-service server disable ntp-service ipv6 server disable ntp-service unicast-server 172.16.0.201
Configure NTP service
If you want to serve time to clients as an actual NTP Server, following config will get you started:
[huawei] undo ntp-service server disable undo ntp-service ipv6 server disable ntp-service refclock-master 2
PS: You may want to configure access control in this case. Check following link for this:
Disable NTP
Completely disable all NTP capabilities on the device.
[huawei] ntp-service disable
Sources: