< Home

ntp-service broadcast-server

Function

The ntp-service broadcast-server command configures the NTP broadcast server mode.

The undo ntp-service broadcast-server command cancels the NTP broadcast server mode.

By default, the broadcast server service is not configured.

Format

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

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

Parameters

Parameter Description Value
authentication-keyid Defines the authentication key. -
key-id Specifies the key ID number used to transmit message to broadcast clients. 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.
autokey Specifies that autokey is enabled. -
version number Defines the NTP version number. The value is in the range of 1 to 4 By default, it is 3.The value is in the range of 1 to 3. By default, it is 3.
port port-number Specifies the port number to transmit NTP broadcast message. The value is in the range of 1025 to 65535.

Views

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Loopback interface view

Default Level

2: Configuration level

Usage Guidelines

Once being specified to send NTP broadcast packets from the current interface, the local device auto runs as the broadcast server to transmit broadcast messages periodically to the broadcast clients.

Example

# Configure GigabitEthernet0/0/0 transmit NTP broadcast message with port 5000.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ntp-service broadcast-server port 5000

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

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ntp-service broadcast-server authentication-keyid 4 version 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >