The ntp-service multicast-client command configures the local device to work in NTP multicast client mode.
The undo ntp-service multicast-client command cancels the NTP multicast client mode.
By default, the NTP multicast client mode is not configured.
ntp-service multicast-client [ ip-address | ipv6 [ ipv6-address ] ]
undo ntp-service multicast-client [ ip-address | ipv6 [ ipv6-address ] ]
Parameter | Description | Value |
---|---|---|
ip-address | Indicates the multicast IP address. | The default IP address is 224.0.1.1. |
ipv6 [ ipv6-address ] | Indicates the multicast IPv6 address. |
The default IPv6 address is FF0E::0101. |
Usage Scenario
To perform clock synchronization in multicast mode, you can use the ntp-service multicast-client command to specify the current interface on the local device to receive NTP multicast packets. The local device runs in the multicast client mode.
If the valid multicast server is configured, the local device gets synchronized with the multicast server. The local device time is updated with the time of the server.
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 more than one multicast client with different multicast IP address on the same interface. When multiple multicast clients are configured, the device selects the optimal clock source by selecting a preferred clock.
You can configure a maximum of 1024 multicast clients on the local device, but a maximum of 128 multicast clients can work simultaneously.
# Configure VLANIF100 to receive NTP multicast packets. The multicast address of the multicast packets is 224.0.1.2.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 [HUAWEI-Vlanif100] ntp-service multicast-client 224.0.1.2
# Configure GigabitEthernet0/0/1 to receive NTP multicast packets. The multicast address of the multicast packets is 224.0.1.1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ntp-service multicast-client 224.0.1.1