NOTE:
In this example, Switch B must be a Layer 3 switch that supports multicast routing.
Figure 14 Network diagram
Configuration procedure
1.
Set the IP address for each interface as shown in
2.
Configure Device C:
# Configure Device C to operate 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 operate 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 synchronize
to Device C.
# Display 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
Actual frequency: 64.0000 Hz
Clock precision: 2^7
Clock offset: 0.0000 ms
Figure
14. (Details not shown.)
29