
27
Configuring NTP multicast mode
Network requirements
As shown in
, Device C functions as the NTP server for multiple devices on different network
segments and synchronizes the time among multiple devices as follows:
•
Device C’s local clock is to be used as a reference source, with the stratum level of 2.
•
Device C works in multicast server mode and sends out multicast messages from VLAN-interface 2.
•
Device A and Device D work in multicast client mode and receive multicast messages through
VLAN-interface 3 and VLAN-interface 2 respectively.
Figure 14
Network diagram
Vlan-int3
1.0.1.11/24
Vlan-int3
1.0.1.10/24
Vlan-int2
3.0.1.31/24
Vlan-int2
3.0.1.32/24
Vlan-int2
3.0.1.30/24
Device A
Device B
Device C
Device D
Configuration procedure
1.
Set the IP address for each interface as shown in
. (Details not shown)
2.
Configure Device C:
# Configure Device C to work in multicast server mode and send multicast messages through
VLAN-interface 2.
[DeviceC] interface vlan-interface 2
[DeviceC-Vlan-interface2] ntp-service multicast-server
3.
Configure Device D:
# Configure Device D to work in multicast client mode and receive multicast messages on VLAN-interface
2.
<DeviceD> system-view
[DeviceD] interface vlan-interface 2
[DeviceD-Vlan-interface2] ntp-service multicast-client
Because Device D and Device C are on the same subnet, Device D can receive the multicast messages
from Device C without being enabled with the multicast functions and can be synchronized to Device C.
# View the NTP status of Device D after clock synchronization.
[DeviceD-Vlan-interface2] display ntp-service status
Clock status: synchronized
Clock stratum: 3
Reference clock ID: 3.0.1.31
Nominal frequency: 64.0000 Hz