beautypg.com

H3C Technologies H3C S6300 Series Switches User Manual

Page 45

background image

32

# Enable the NTP service.

system-view

[DeviceA] ntp-service enable

# Specify the local clock as the reference source, with the stratum level 3.

[DeviceA] ntp-service refclock-master 3

3.

Configure Device B:
# Enable the NTP service.

[DeviceB] ntp-service enable

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

[DeviceB] ntp-service unicast-server 3.0.1.31

4.

Configure Device C:
# Enable the NTP service.

system-view

[DeviceC] ntp-service enable

# Specify the local clock as the reference source, with the stratum level 2.

[DeviceC] ntp-service refclock-master 2

# Configure Device B as a symmetric passive peer.

[DeviceC] ntp-service unicast-peer 3.0.1.32

5.

Verify the configuration:
# After the configuration, Device B has two time servers Device A and Device C. Device C has a

lower stratum level than Device A, so Device B selects Device C as a reference clock to synchronize
to Device C. After synchronization, view the status of Device B. The output shows that Device B has

been synchronized to Device C.

[DeviceB] display ntp-service status

Clock status: synchronized

Clock stratum: 3

System peer: 3.0.1.33

Local mode: sym_passive

Reference clock ID: 3.0.1.33

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 Sun, Jan 4 1970 5:56:17.869

# Display IPv4 NTP association information for Device B.

[DeviceB] display ntp-service sessions

source reference stra reach poll now offset delay disper

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

[25]3.0.1.31 127.127.1.0 3 28 64 - 0.0000 0.0000 4000.0

[1234]3.0.1.33 127.127.1.0 2 62 64 34 0.4251 6.0882 1392.1

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

Total sessions: 2

The output shows that an association has been set up between Device B and Device A, and Device
B and Device C