The ntp-service multicast-server command specifies an interface on the local device to send NTP multicast packets. The local device runs in the multicast server mode.
The undo ntp-service multicast-server command cancels the NTP multicast server mode.
By default, the multicast server mode is not configured.
ntp-service multicast-server [ ip-address ] [ version number | authentication-keyid key-id | ttl ttl-number | port port-number ] *
ntp-service multicast-server ipv6 [ ipv6-address ] [ authentication-keyid key-id | ttl ttl-number | port port-number ] *
undo ntp-service multicast-server [ ip-address ] [ version number | authentication-keyid key-id | ttl ttl-number | port port-number ] *
undo ntp-service multicast-server ipv6 [ ipv6-address ] [ authentication-keyid key-id | ttl ttl-number | port port-number ] *
Parameter | Description | Value |
---|---|---|
ip-address | Indicates the multicast IP address. | The default address is 224.0.1.1. |
ipv6 [ ipv6-address ] | Indicates the multicast IPv6 address. |
The default IPv6 address is FF0E::0101. |
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 ID used when sending messages to the multicast clients. If this parameter is not specified, authentication is not performed. |
The value is an integer. It ranges from 1 to 4294967295 when the NIP version number is 1, 2, or 3, and ranges from 1 to 65535 when the version number is 4 or the specified remote server uses an IPv6 address. |
ttl ttl-number | Indicates the life span of the multicast packet. If this parameter is not specified, the life span of the multicast packet is a default value. |
The ttl number is an integer that ranges from 1 to 255. The default value is 255. |
port port-number | Specifies the port number to transmit NTP multicast message. | The value is 123 or an integer ranging from 1025 to 65535. The default value is 123. |
Usage Scenario
To perform clock synchronization in the multicast mode, run the ntp-service multicast-server command to specify the current interface on the local device to send NTP multicast packets. The local device runs in the multicast server mode, and functions as the multicast server to periodically send multicast packets to the multicast client.
Follow-up Procedure
When the configuration is complete, run the display ntp-service sessions command to obtain session information about the multicast server and the local device.
You can configure a maximum of 128 multicast servers on the local device.
# Configure VLANIF100 to send NTP multicast packets. The multicast IPv4 address is 224.0.1.1, the authentication key ID is 4 and the NTP version number is 3.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 [HUAWEI-Vlanif100] ntp-service multicast-server 224.0.1.1 authentication-keyid 4 version 3
# Configure GigabitEthernet0/0/1 to send NTP multicast packets. The multicast IPv4 address is 224.0.1.1, the authentication key ID is 4 and the NTP version number is 3.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ntp-service multicast-server 224.0.1.1 authentication-keyid 4 version 3