ntp-service broadcast-server

Function

The ntp-service broadcast-client command configures a device to work in NTP broadcast client mode.

The undo ntp-service broadcast-client command removes a device from NTP broadcast client mode.

The ntp-service broadcast-server command configures a local device to work in NTP broadcast server mode.

The undo ntp-service broadcast-server command removes a device from NTP broadcast server mode.

By default, the broadcast service is not configured.

Format

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

ntp-service broadcast-client

undo ntp-service broadcast-server

undo ntp-service broadcast-client

Parameters

Parameter Description Value
authentication-keyid key-id

Specifies an authentication key number used to transmit message to broadcast clients.

The value is an integer ranging from 1 to 4294967295 (version 1 to 3), 1 to 65535 (version 4). By default, no authentication key is configured.

version version-number

Sets an NTP version number.

The value is an integer ranging from 1 to 4. The default value is 3.

port port-number

Specifies the port number to be used as the destination port in the NTP broadcast packet.

The number is an integer that can be 123, or ranges from 1025 to 65535. The default value is 123.

Views

Virtual template view, Tunnel interface view, 40GE interface view, 100GE interface view, GE electrical interface view, Loopback interface view, VLANIF interface view, 10GE interface view, GE optical interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp write

Usage Guidelines

Usage Scenario

A local device automatically runs as a broadcast client once it is configured to receive NTP broadcast messages on a current interface.

If a device is configured to send NTP broadcast packets through an existing interface, the local device automatically runs a broadcast server to transmit broadcast messages periodically to broadcast clients.

In VS mode, this command is supported only by the admin VS.

Precautions

If this command is the first NTP configuration command, the system automatically adds the ntp-service [ ipv6 ] server disable command in the configuration file to disable the NTP service. To enable the NTP service, run the undo ntp-service [ ipv6 ] server disable command. If this command is the last NTP configuration command to be deleted, the system automatically deletes the ntp-service [ ipv6 ] server disable command from the configuration file.

Example

# Enable 10GE 0/1/0 to send NTP broadcast packets, with the authentication key number of 4 and the NTP version of 3.
<HUAWEI> system-view
[~HUAWEI] ntp-service authentication-keyid 4 authentication-mode hmac-sha256 123456
[*HUAWEI] interface 10GE 0/1/0
[*HUAWEI-10GE0/1/0] ip address 10.1.1.1 24
[*HUAWEI-10GE0/1/0] ntp-service broadcast-server authentication-keyid 4 version 3
# Configure 10GE 0/1/0 to transmit NTP broadcast message with port 5000.
<HUAWEI> system-view
[~HUAWEI] interface 10GE 0/1/0
[~HUAWEI-10GE0/1/0] ntp-service broadcast-server port 5000
# Enable GE 0/1/0 to receive NTP broadcast messages.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ip address 10.1.1.1 24
[*HUAWEI-GigabitEthernet0/1/0] ntp-service broadcast-client
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >