No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Switch as an NTP Server

Configuring the Switch as an NTP Server

  • Unicast client/server mode

    # Configure the NTP master clock and set the stratum to 2.
    <HUAWEI> system-view
    [~HUAWEI] ntp refclock-master 2
    [*HUAWEI] commit
    # Enable NTP authentication, configure the authentication key, and specify the key as reliable.
    [~HUAWEI] ntp authentication enable
    [*HUAWEI] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
    [*HUAWEI] ntp trusted authentication-keyid 42
    [*HUAWEI] commit
    # Enable the NTP server.
    [~HUAWEI] undo ntp server disable
    [*HUAWEI] commit
  • Broadcast mode

    # Configure the NTP master clock and set the stratum to 2.
    <HUAWEI> system-view
    [~HUAWEI] ntp refclock-master 2
    [*HUAWEI] commit
    # Enable NTP authentication, configure the authentication key, and specify the key as reliable.
    [~HUAWEI] ntp authentication enable
    [*HUAWEI] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
    [*HUAWEI] ntp trusted authentication-keyid 42
    [*HUAWEI] commit
    # Configure the NTP broadcast server to send NTP broadcast packets through 10GE1/0/1, and use key 42 for encryption.
    [~HUAWEI] interface 10ge 1/0/1
    [~HUAWEI-10GE1/0/1] undo portswitch
    [*HUAWEI-10GE1/0/1] ntp broadcast-server authentication-keyid 42
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
    # Enable the NTP server.
    [~HUAWEI] undo ntp server disable
    [*HUAWEI] commit
  • Multicast mode

    # Configure the NTP master clock and set the stratum to 2.
    <HUAWEI> system-view
    [~HUAWEI] ntp refclock-master 2
    [*HUAWEI] commit
    # Enable NTP authentication, configure the authentication key, and specify the key as reliable.
    [~HUAWEI] ntp authentication enable
    [*HUAWEI] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
    [*HUAWEI] ntp trusted authentication-keyid 42
    [*HUAWEI] commit
    # Configure the NTP multicast server to send NTP multicast packets through 10GE1/0/1, and use key 42 for encryption.
    [~HUAWEI] interface 10ge 1/0/1
    [~HUAWEI-10GE1/0/1] undo portswitch
    [*HUAWEI-10GE1/0/1] ntp multicast-server authentication-keyid 42
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
    # Enable the NTP server.
    [~HUAWEI] undo ntp server disable
    [*HUAWEI] commit
  • Manycast mode

    # Configure the NTP master clock and set the stratum to 2.
    <HUAWEI> system-view
    [~HUAWEI] ntp refclock-master 2
    [*HUAWEI] commit
    # Enable NTP authentication, configure the authentication key, and specify the key as reliable.
    [~HUAWEI] ntp authentication enable
    [*HUAWEI] ntp authentication-keyid 42 authentication-mode hmac-sha256 Hello@123456
    [*HUAWEI] ntp trusted authentication-keyid 42
    [*HUAWEI] commit
    # Configure the NTP manycast server to send NTP manycast packets through 10GE1/0/1.
    [~HUAWEI] interface 10ge 1/0/1
    [~HUAWEI-10GE1/0/1] undo portswitch
    [*HUAWEI-10GE1/0/1] ntp manycast-server
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
    # Enable the NTP server.
    [~HUAWEI] undo ntp server disable
    [*HUAWEI] commit
Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 143843

Downloads: 3160

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next