< Home

ntp-service multicast-server

Function

The ntp-service multicast-server command specifies an interface on the local device to send NTP multicast packets. The local device is run in the multicast server mode.

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

By default, the multicast service is not configured.

Format

ntp-service multicast-server ipv6 [ ipv6-address ] [ [ authentication-keyid key-id | autokey ] | ttl ttl-number | port port-number ] *

ntp-service multicast-server [ ip-address ] [ [ authentication-keyid key-id | autokey ] | ttl ttl-number | version number | port port-number ] *

undo ntp-service multicast-server [ ip-address ] [ [ authentication-keyid key-id | autokey ] | ttl ttl-number | version number | port port-number ] *

undo ntp-service multicast-server ipv6 [ ipv6-address ] [ [ authentication-keyid key-id | autokey ] | ttl ttl-number | port port-number ] *

Parameters

Parameter Description Value
ip-address Specifies the multicast IPv4 address, which is a Class D address. By default, it is 224.0.1.1.
ipv6 ipv6-address Specifies the multicast IPv6 address. By default, it is FF0E::0101.
authentication-keyid key-id Specifies the authentication key ID number used while sending messages to the multicast 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 the autokey is enabled. -
ttl ttl-number Specifies the life span of the multicast packet. The value is in the range of 1 to 255.
version number Specifies the NTP version number. The value is in the range of 1 to 4 By default, it is 3.
port port-number Specifies the port number to transmit NTP multicast 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

Specify an interface on the local device to send NTP multicast messages. The local device runs in multicast-server mode as a multicast-server, periodically sending multicast messages to the multicast client. For Autokey, internally the value ranges between 65537-4294967295.

Example

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

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

# Configure GE0/0/0 to send NTP multicast messages. The multicast address is 224.0.1.1, the authentication key number is 4 and the NTP version number is 3.

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