Ntp broadcast mode configuration example, Network requirements – H3C Technologies H3C MSR 50 User Manual

Page 57

Advertising
background image

<DeviceA> system-view

[DeviceA] ntp-service refclock-master 2

3.

Configure Device B:
# Specify Device A as the NTP server of Device B.

<DeviceB> system-view

[DeviceB] ntp-service unicast-server 3.0.1.31

4.

Configure Device C (after Device B is synchronized to Device A):
# Specify the local clock as the reference source, with the stratum level 1.

<DeviceC> system-view

[DeviceC] ntp-service refclock-master 1

# Configure Device B as a symmetric peer after local synchronization.

[DeviceC] ntp-service unicast-peer 3.0.1.32

In the step above, Device B and Device C are configured as symmetric peers, with Device C in the
symmetric-active mode and Device B in the symmetric-passive mode. Because the stratus level of

Device C is 1 while that of Device B is 3, Device B synchronizes to Device C.
# Display the NTP status of Device B after clock synchronization.

[DeviceB] display ntp-service status

Clock status: synchronized

Clock stratum: 2

Reference clock ID: 3.0.1.33

Nominal frequency: 64.0000 Hz

Actual frequency: 64.0000 Hz

Clock precision: 2^7

Clock offset: -21.1982 ms

Root delay: 15.00 ms

Root dispersion: 775.15 ms

Peer dispersion: 34.29 ms

Reference time: 15:22:47.083 UTC Sep 19 2005 (C6D95647.153F7CED)

The output shows that Device B has synchronized to Device C. The stratum level of Device B is 2,
and that of Device C is 1.
# Display NTP session information for Device B, which shows that an association has been set up
between Device B and Device C.

[DeviceB] display ntp-service sessions

source reference stra reach poll now offset delay disper

**************************************************************************

[245] 3.0.1.31 127.127.1.0 2 15 64 24 10535.0 19.6 14.5

[1234] 3.0.1.33 LOCL 1 14 64 27 -77.0 16.0 14.8

note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured

Total associations : 2

NTP broadcast mode configuration example

Network requirements

As shown in

Figure 19

, Router C functions as the NTP server for multiple devices on a network segment

and synchronizes the time among multiple devices.

Router C’s local clock is to be used as a reference source, with the stratum level 2.

44

Advertising