![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 165](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487165.webp)
# On Switch A, set the clock as a master NTP clock with stratum being 2.
<SwitchA>
system-view
[SwitchA]
ntp-service refclock-master 2
# Enable NTP authentication on Switch A, configure the authentication key, and declare the key
to be reliable.
[SwitchA]
ntp-service authentication enable
[SwitchA]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[SwitchA]
ntp-service reliable authentication-keyid 42
The authentication keys configured on the server and the client must be the same.
Step 3
Configure Switch B as the NTP server and enable the NTP authentication.
# Enable NTP authentication on Switch B, configure the authentication key, and declare the key
to be reliable.
<SwitchB>
system-view
[SwitchB]
ntp-service authentication enable
[SwitchB]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[SwitchB]
ntp-service reliable authentication-keyid 42
# # Configure Switch A to be the NTP server of Switch B and use the authentication key.
[SwitchB]
ntp-service unicast-server 2.2.2.2 authentication-keyid 42
Step 4
Specify the NTP server for Switch C.
# Configure Switch B as the NTP server of Switch C.
<SwitchC>
system-view
[SwitchC]
ntp-service authentication enable
[SwitchC]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[SwitchC]
ntp-service reliable authentication-keyid 42
[SwitchC]
ntp-service unicast-server 10.0.0.1 authentication-keyid 42
Step 5
Specify the NTP server for Switch D.
# Configure Switch B as the NTP server of Switch D.
<SwitchD>
system-view
[SwitchD]
ntp-service authentication enable
[SwitchD]
ntp-service authentication-keyid 42 authentication-mode md5 Hello
[SwitchD]
ntp-service reliable authentication-keyid 42
[SwitchD]
ntp-service unicast-server 10.0.0.1 authentication-keyid 42
Step 6
Verify the configuration.
After the configurations, Switch B can synchronize its clock with the clock of Switch A.
Check the NTP status of Switch B, and you can view that the status of the clock is synchronized.
This means that the synchronization is complete. The stratum of the clock of Switch B is 3, one
stratum lower than the clock stratum of Switch A.
[SwitchB]
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)
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
3 NTP Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-23