Configuring NTP authentication in broadcast mode

Follow these instructions to configure NTP authentication in broadcast mode:

Configuring NTP authentication for a broadcast client

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable NTP authentication.

ntp-service authentication enable

By default, NTP authentication is disabled.

3. Configure an NTP authentication key.

ntp-service authentication-keyid keyid authentication-mode md5 [ cipher | simple ] value

By default, no NTP authentication key is configured.

Configure the same authentication key on the client and server.

4. Configure the key as a trusted key.

ntp-service reliable authentication-keyid keyid

By default, the authentication key is not configured as a trusted key.

Configuring NTP authentication for a broadcast server

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable NTP authentication.

ntp-service authentication enable

By default, NTP authentication is disabled.

3. Configure an NTP authentication key.

ntp-service authentication-keyid keyid authentication-mode md5 [ cipher | simple ] value

By default, no NTP authentication key is configured.

Configure the same authentication key on the client and server.

4. Configure the key as a trusted key.

ntp-service reliable authentication-keyid keyid

By default, the authentication key is not configured as a trusted key.

5. Enter Layer 3 Ethernet interface view or VLAN interface view.

interface interface-type interface-number

N/A

6. Associate the specified key with the broadcast server.

ntp-service broadcast-server authentication-keyid keyid

You can associate a non-existing key with the broadcast server. To enable NTP authentication, you must configure the key and specify it as a trusted key after associating the key with the broadcast server.