< Home

NTP Security

Security Policy

On a network that requires high security and runs the Network Time Protocol (NTP), enable the authentication function to prevent malicious attacks from changing the data of clock packets. Password authentication between NTP clients and servers can ensure that NTP clients synchronize time only with authenticated switches, improving network security.

Configuration Method

Set the cipher-text key for HMAC-SHA256 authentication to xyz123 and specify the key as a trusted key.

<HUAWEI> system-view
[HUAWEI] ntp-service authentication enable
[HUAWEI] ntp-service authentication-keyid 10 authentication-mode hmac-sha256 cipher xyz123 
[HUAWEI] ntp-service reliable authentication-keyid 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >