[~RouterA]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[~RouterA]
ntp-service reliable authentication-keyid 42
[~RouterA]
commit
NOTE
Authentication keys configured on the server and the client should be the same.
Step 3
Configure a primary NTP clock on Router B and enable NTP authentication.
# On Router B, enable NTP authentication. Configure the authentication key and declare the
key to be reliable.
<RouterB>
system-view
[~RouterB]
ntp-service authentication enable
[~RouterB]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[~RouterB]
ntp-service reliable authentication-keyid 42
# Specify Router A to be the NTP server of Router B and use the authentication key.
[~RouterB]
ntp-service unicast-server 2.2.2.2 authentication-keyid 42
[~RouterB]
commit
Step 4
On Router C, specify Router B to be the NTP server of Router C.
<RouterC>
system-view
[~RouterC]
ntp-service authentication enable
[~RouterC]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[~RouterC]
ntp-service reliable authentication-keyid 42
[~RouterC]
ntp-service unicast-server 10.0.0.1 authentication-keyid 42
[~RouterC]
commit
Step 5
On Router D, specify Router B to be the NTP server of Router D.
<RouterD>
system-view
[~RouterD]
ntp-service authentication enable
[~RouterD]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[~RouterC]
ntp-service reliable authentication-keyid 42
[~RouterD]
ntp-service unicast-server 10.0.0.1 authentication-keyid 42
[~RouterD]
commit
Step 6
Verify the configuration.
After the configurations, the clock on Router B can be synchronized with the clock on Router
A.
Display the NTP status on Router B and find the clock is synchronized. The stratum of the clock
is 3, one stratum lower than that on Router A.
[~RouterB]
display ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: 2.2.2.2
nominal frequency: 60.0002 Hz
actual frequency: 60.0002 Hz
clock precision: 2^18
clock offset: 3.8128 ms
root delay: 31.26 ms
root dispersion: 74.20 ms
peer dispersion: 34.30 ms
reference time: 11:55:56.833 UTC Mar 2 2006(C7B15BCC.D5604189)
After the configurations, the clock on Router C can be synchronized with the clock on Router
B.
Display the NTP status on Router C and find that the clock is synchronized. The stratum of the
clock is 4, one stratum lower than that on Router B.
[~RouterC]
display ntp-service status
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
2 NTP Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
37