< Home

Configuring the Peer Mode

This part describes how to configure the NTP peer mode. In this mode, clocks on the two peers synchronize with each other based on the stratum. Each side can send the clock synchronization request message to the peer and reply the clock synchronization request message from the peer.

Context

Commonly, specify the IP address of the NTP server on the client. The client and server can then exchange NTP packets using this IP address.

If the source interface to send NTP packets is specified on the symmetric active end, the IP address of the NTP peer configured on the symmetric passive end should be the same; otherwise, the passive end cannot process NTP packets sent from the active end and clock synchronization fails.

Procedure

  • Configuring the NTP Symmetric Active End
    1. Access the system view.

      system-view

    2. Optional: Set the local source interface that sends NTP packets.

      ntp-service [ ipv6 ] source-interface interface-type interface-number [ vpn-instance vpn-instance-name ]

      If source-interface is specified in both 2 and 3, use the source interface specified in 3 preferentially.

    3. Set the NTP peer with a specified IPv4 or IPv6 address.

      • ntp-service unicast-peer ip-address [ version number | [ authentication-keyid key-id | autokey ] | source-interface interface-type interface-number | preference | vpn-instance vpn-instance-name | maxpoll max-number | minpoll min-number | preempt | port port-number ] *
      • ntp-service unicast-peer ipv6 ipv6-address [ [ authentication-keyid key-id | autokey ] | source-interface interface-type interface-number | preference | vpn-instance vpn-instance-name | maxpoll max-number | minpoll min-number | preempt | port port-number ] *

      ip-address or ipv6-address is the address of the NTP peer. It can be the IPv4 or IPv6 address of a host other than a broadcast address, a multicast address, or the IP address of the reference clock.

      After the NTP peer is specified, the local FW runs in symmetric active mode. The symmetric passive end need not be configured.

  • Optional: Configuring the Source Interface of the NTP Symmetric Passive End
    1. Access the system view.

      system-view

    2. Set the local source interface that sends NTP packets.

      ntp-service [ ipv6 ] source-interface interface-type interface-number [ vpn-instance vpn-instance-name ]

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >