Data Preparation
To complete the configuration, you need the following data:
l
IP address of RouterC
l
IP address of RouterD
l
Stratum of the NTP primary clock
Procedure
Step 1
Configure IP addresses for RouterC, RouterD, and RouterE.
Configure an IP address for each interface based on
. After configurations, the three
routers can ping through each other.
The detailed procedures are not mentioned here.
Step 2
Configure the NTP Client/Server mode.
# Configure the clock on RouterC to be its own reference clock with the stratum being 2.
<RouterC>
system-view
[RouterC]
ntp-service refclock-master 2
# On RouterD, configure RouterC to be its NTP server.
<RouterD>
system-view
[RouterD]
ntp-service unicast-server 10.0.1.1
After configurations, the clock on RouterD can be synchronized to the clock on RouterC.
View the NTP status on RouterD and find that the clock is synchronized. The stratum of the
clock on RouterD is 3, one stratum lower than that on RouterC.
[RouterD]
display ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: 10.0.1.1
nominal frequency: 64.0029 Hz
actual frequency: 64.0029 Hz
clock precision: 2^7
clock offset: 0.0000 ms
root delay: 62.50 ms
root dispersion: 0.20 ms
peer dispersion: 7.81 ms
reference time: 06:52:33.465 UTC Mar 7 2006(C7B7AC31.773E89A8)
Step 3
Configure the unicast NTP peer mode.
# On RouterE, configure RouterD to be the symmetric passive end.
<RouterE>
system-view
[RouterE]
ntp-service unicast-peer 10.0.1.2
Since no primary clock is configured on RouterE, the clock on RouterE should be synchronized
to the clock on RouterD.
Step 4
Verify the configuration.
View the status of RouterE after clock synchronization and you can find that the status is
"synchronized". That is, clock synchronization completes. You can also find that the stratum of
the clock on RouterE is 4, one stratum lower than that on RouterD.
[RouterE]
display ntp-service status
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
5 NTP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
130