NTP Configuration Examples 965
Configuring NTP
Multicast Mode
Network requirements
■ Switch C’s local clock is to be used as a reference source, with the stratum level
of 2.
■ Switch C works in the multicast server mode and sends out multicast messages
from VLAN-interface 2.
■ Switch D and Switch A work in the multicast client mode and receive multicast
messages through their respective VLAN-interface 2.
Network diagram
Figure 286 Network diagram for NTP multicast mode configuration
Configuration procedure
1 Configuration on Switch C:
# Specify the local clock as the reference source, with the stratum level of 2.
<SwitchC> system-view
[SwitchC] ntp-service refclock-master 2
# Configure Switch C to work in the multicast server mode and send multicast
messages through VLAN-interface 2.
[SwitchC] interface vlan-interface 2
[SwitchC-Vlan-interface2] ntp-service multicast-server
2 Configuration on Switch D:
# Configure Switch D to work in the multicast client mode and receive multicast
messages on VLAN-interface 2.
<SwitchD> system-view
[SwitchD] interface vlan-interface 2
[SwitchD-Vlan-interface2] ntp-service multicast-client
Because Switch D and Switch C are on the same subnet, Switch D can receive the
multicast messages from Switch C without being IGMP-enabled and can be
synchronized to Switch C.
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
Switch A Switch B
Switch C
Switch D