IPv6 NTP symmetric active/passive mode configuration example

Network requirements

As shown in Figure 38, perform the following tasks:

Figure 38: Network diagram

Configuration procedure

  1. Assign an IP address to each interface, and make sure Device A and Device B can reach each other, as shown in Figure 38. (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 stratum level 2.

    [DeviceA] ntp-service refclock-master 2
    

    # Configure Device B as an IPv6 symmetric passive peer.

    [DeviceA] ntp-service ipv6 unicast-peer 3000::36
    
  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: 3000::35
     Local mode: sym_passive
     Reference clock ID: 251.73.79.32
     Leap indicator: 11
     Clock jitter: 0.000977 s
     Stability: 0.000 pps
     Clock precision: 2^-18
     Root delay: 0.01855 ms
     Root dispersion: 9.23483 ms
     Reference time: d0c6047c.97199f9f  Wed, Dec 29 2010 19:03:24.590
    

    # 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:  [1234]3000::35
     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