(Optional) Configuring the Manycast Mode

The NTP manycast mode can be configured to synchronize clocks in a manycast domain.

Procedure

  • Configure an NTP manycast server.

    Perform the following steps on the router functioning as an NTP manycast server:

    1. Run system-view

      The system view is displayed.

    2. Run ntp-service authentication-keyid keyId authentication-mode { md5 | hmac-sha256 } { password | cipher password }

      The NTP authentication key is set.

      Using the HMAC-SHA256 algorithm for NTP authentication is recommended.

      The system automatically verifies the strength of an entered key. Only the key that meets the strength requirements can be configured. To disable key strength check, run the ntp authentication-password complexity-check disable command.

      Disabling the key strength check function causes security risks. Therefore, you are advised not to run this command.

    3. Run interface interface-type interface-number

      The view of the interface sending NTP manycast messages is entered.

    4. Configure an NTP manycast server.

  • Configure an NTP manycast client.

    Perform the following steps on the router functioning as an NTP manycast client:

    1. Run system-view

      The system view is displayed.

    2. Run ntp-service authentication-keyid keyId authentication-mode { md5 | hmac-sha256 } { password | cipher password }

      The NTP authentication key is set.

      Using the HMAC-SHA256 algorithm for NTP authentication is recommended.

      The system automatically verifies the strength of an entered key. Only the key that meets the strength requirements can be configured. To disable key strength check, run the ntp authentication-password complexity-check disable command.

      Disabling the key strength check function causes security risks. Therefore, you are advised not to run this command.

    3. (Optional) Run ntp-service max-dynamic-sessions number

      The number of dynamic sessions allowed to be set up is set.

      Running the ntp-service max-dynamic-sessions command does not affect the existing NTP sessions. When the number of sessions reaches the maximum number, no more sessions can be set up.

    4. Run interface interface-type interface-number

      The interface to receive manycast NTP packets is specified.

    5. Run:

      • ntp-service manycast-client ip-address [ [ authentication-keyid key-id ] | ttl ttl-number | port port-number ] *

        The device is configured as an NTP manycast client on an IPv4 network.

      • ntp-service manycast-client ipv6 [ ipv6-address ][ [ authentication-keyid key-id ] | ttl ttl-number | port port-number ] *

        The device is configured as an NTP manycast client on an IPv6 network.

    6. Run commit

      The configuration is committed.

      The NTP manycast client listens to the manycast NTP packets sent from the server and synchronizes the local clock.

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