(Optional) Configuring the Broadcast Mode

The NTP broadcast mode can be configured on a LAN to synchronize clocks on the LAN.

Procedure

  • Configure an NTP broadcast 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 broadcast messages is displayed.

    4. Run ntp-service broadcast-server [ authentication-keyid key-id | version version-number | port port-number ] *

      The local router is configured as an NTP broadcast server.

      The NTP broadcast server periodically sends clock-synchronization packets to the broadcast address 255.255.255.255.

      The NTP broadcast server functions for a LAN only.

    5. Run commit

      The configuration is committed.

  • Configure an NTP broadcast 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 maximum number of dynamic sessions allowed to be set up is set.

      Running the ntp-service max-dynamic-sessions command does not affect 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 view of the interface receiving NTP broadcast messages is displayed.

    5. Run ntp-service broadcast-client

      The local router is configured as an NTP broadcast client.

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

    6. Run commit

      The configuration is committed.

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