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 runs in the multicast server mode.
The undo ntp-service multicast-server command removes the local device from NTP multicast server mode.
By default, the multicast server mode is not configured.
Format
ntp-service multicast-server [ ip-address ] [ version number | authentication-keyid key-id | ttl ttl-number ] *
ntp-service multicast-server [ ipv6 [ ipv6-address ] ] [ authentication-keyid key-id | ttl ttl-number ] *
undo ntp-service multicast-server [ ip-address | ipv6 [ ipv6-address ] ]
Parameters
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 number used when sending messages to the multicast clients. If this parameter is not specified, authentication is not performed. |
Key ID is an integer and ranges from 1 to 4294967295. |
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 and ranges from 1 to 255. The default value is 255. |
Usage Guidelines
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.
Example
# Configure VLANIF100 to send NTP multicast packets. The multicast IPv4 address is 224.0.1.1, the authentication number is 4 and the NTP version number is 3.
<AC6605> system-view [AC6605] interface vlanif 100 [AC6605-Vlanif100] ip address 10.1.1.1 24 [AC6605-Vlanif100] ntp-service multicast-server 224.0.1.1 authentication-keyid 4 version 3