IPv6 NTP client/server mode configuration example
Network requirements
As shown in Figure 36, perform the following tasks:
Configure the local clock of Device A as a reference source, with stratum level 2.
Configure Device B to operate in client mode and Device A to be used as the IPv6 NTP server for Device B.
Figure 36: Network diagram
Configuration procedure
Assign an IP address to each interface, and make sure Device A and Device B can reach each other, as shown in Figure 36. (Details not shown.)
Configure Device A:
# Enable the NTP service.
<DeviceA> system-view [DeviceA] ntp-service enable
# Specify the local clock as the reference source, with stratum level 2.
[DeviceA] ntp-service refclock-master 2
Configure Device B:
# Enable the NTP service.
<DeviceB> system-view [DeviceB] ntp-service enable
# Specify Device A as the IPv6 NTP server of Device B so that Device B is synchronized to Device A.
[DeviceB] ntp-service ipv6 unicast-server 3000::34
Verify the configuration:
# Verify that Device B has synchronized to Device A, and the clock stratum level is 3 on Device B and 2 on Device A.
[DeviceB] display ntp-service status Clock status: synchronized Clock stratum: 3 System peer: 3000::34 Local mode: client Reference clock ID: 163.29.247.19 Leap indicator: 00 Clock jitter: 0.000977 s Stability: 0.000 pps Clock precision: 2^-18 Root delay: 0.02649 ms Root dispersion: 12.24641 ms Reference time: d0c60419.9952fb3e Wed, Dec 29 2010 19:01:45.598
# Verify that an IPv6 NTP association has been established between Device B and Device A.
[DeviceB] display ntp-service ipv6 sessions Notes: 1 source(master), 2 source(peer), 3 selected, 4 candidate, 5 configured. Source: [12345]3000::34 Reference: 127.127.1.0 Clock stratum: 2 Reachabilities: 15 Poll interval: 64 Last receive time: 19 Offset: 0.0 Roundtrip delay: 0.0 Dispersion: 0.0 Total sessions: 1