l
IP address of Router C
l
IP address of Router D
l
Stratum of the NTP primary clock
Procedure
Step 1
Configure IP addresses for Router C, Router D, and Router E.
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 server/client mode.
# Configure the clock on Router C to be its own reference clock with the stratum being 2.
<RouterC>
system-view
[~RouterC]
ntp-service refclock-master 2
[~RouterC]
commit
# On Router D, configure Router C to be its NTP server.
<RouterD>
system-view
[~RouterD]
ntp-service unicast-server 3.0.1.31
[~RouterD]
commit
After configurations, the clock on Router D can be synchronized to the clock on Router C.
Display the NTP status on Router D and find that the status is synchronized. The stratum of the
clock on Router D is 3, one stratum lower than that on Router C.
[~RouterD]
display ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: 3.0.1.31
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 Router E, configure Router D to be the symmetric passive end.
<RouterE>
system-view
[~RouterE]
ntp-service unicast-peer 3.0.1.32
[~RouterE]
commit
Since no primary clock is configured on Router E, the clock on Router E should be synchronized
to the clock on Router D.
Step 4
Verify the configuration.
View the status of Router E 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 Router E is 4, one stratum lower than that on Router D.
[~RouterE]
display ntp-service status
clock status: synchronized
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.
41