29
NTP symmetric active/passive mode configuration example
Network requirements
As shown in Figure 11:
• Configure the local clock of Device A as a reference source, with the stratum level 2.
• Configure Device A to operate in symmetric-active mode and specify Device B as the passive
peer of Device A.
Figure 11 Network diagram
Configuration procedure
1. Set the IP address for each interface, and make sure Device A and Device B can reach each
other, as shown in Figure 11. (Details not shown.)
2. Configure Device B:
# Enable the NTP service.
<DeviceB> system-view
[DeviceB] ntp-service enable
3. Configure Device A:
# Enable the NTP service.
<DeviceA> system-view
[DeviceA] ntp-service enable
# Specify the local clock as the reference source, with the stratum level 2.
[DeviceA] ntp-service refclock-master 2
# Configure Device B as a symmetric passive peer.
[DeviceA] ntp-service unicast-peer 3.0.1.32
4. Verify the configuration:
# Verify that Device B has synchronized to Device A.
[DeviceB] display ntp-service status
Clock status: synchronized
Clock stratum: 3
System peer: 3.0.1.31
Local mode: sym_passive
Reference clock ID: 3.0.1.31
Leap indicator: 00
Clock jitter: 0.000916 s
Stability: 0.000 pps
Clock precision: 2^-17
Root delay: 0.00609 ms
Root dispersion: 1.95859 ms
Reference time: 83aec681.deb6d3e5 Wed, Jan 8 2014 14:33:11.081
# Verify that an IPv4 NTP association has been established between Device B and Device A.
[DeviceB] display ntp-service sessions
Device BDevice A
3.0.1.31/24 3.0.1.32/24
Symmetric active peer Symmetric passive peer