< Home

ntp-service broadcast-server

Function

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

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

By default, the broadcast server mode is not configured.

Format

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

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

Parameters

Parameter Description Value
version number Indicates the NTP version number.

If this parameter is not specified, the version number is a default value.

The value is an integer that ranges from 1 to 4. The default value is 3.
authentication-keyid key-id Indicates the authentication key number used to transmit a message to broadcast clients.

If this parameter is not specified, authentication is not performed.

For NTPv1, NTPv2, and NTPv3, the value is an integer ranging from 1 to 4294967295. For NTPv4, the value is an integer ranging from 1 to 65535.
port port-number Specifies the port number to transmit NTP broadcast message. The value is 123 or an integer ranging from 1025 to 65535. The default value is 123.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

On a synchronization subnet, when the IP address of a server or a symmetric peer is not determined, or when the clocks on a large number of devices need to be synchronized on the network, you can implement clock synchronization by configuring the broadcast mode.

On a specified interface on the broadcast server, run the ntp-service broadcast-server command to configure an interface on the local device to send NTP broadcast packets. When the local device automatically runs in the broadcast server mode, the device can send synchronization packets to a broadcast client. For the configuration of the broadcast client, see the ntp-service broadcast-client command.

When the configuration is complete, you can run the display ntp-service sessions command to obtain information about sessions between the broadcast server and the client.

Example

# Enable VLANIF100 to send NTP broadcast packets, with the NTP version as 2 and the key number as 4.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ip address 10.1.1.1 24
[HUAWEI-Vlanif100] ntp-service broadcast-server version 2 authentication-keyid 4

# Enable GigabitEthernet0/0/1 to send NTP broadcast packets, with the NTP version as 3 and the key number as 100.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] ntp-service broadcast-server version 3 authentication-keyid 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >