71 
Configuring NTP broadcast mode example    
Network requirements 
As shown in Figure 27, Switch C functions as the NTP server for multiple devices on a network segment 
and synchronizes the time among multiple devices. 
•  Switch C’s local clock is to be used as a reference source, with the stratum level of 2. 
•  Switch C works in broadcast server mode and sends out broadcast messages from VLAN-interface 2. 
•  Switch A and Switch B work in broadcast client mode, and listen to broadcast messages through 
their VLAN-interface 2 respectively. 
Figure 27 Network diagram for NTP broadcast mode configuration 
 
 
Configuration procedure 
1.  Set the IP address for each interface as shown in Figure 27. The configuration procedure is omitted. 
2.  Configuration on Switch C: 
# Configure Switch C to work in broadcast server mode and send broadcast messages through VLAN-
interface 2.  
[SwitchC] interface vlan-interface 2 
[SwitchC-Vlan-interface2] ntp-service broadcast-server 
3.  Configuration on Switch A: 
# Configure Switch A to work in broadcast client mode and receive broadcast messages on VLAN-
interface 2.  
<SwitchA> system-view 
[SwitchA] interface vlan-interface 2 
[SwitchA-Vlan-interface2] ntp-service broadcast-client 
4.  Configuration on Switch B: 
# Configure Switch B to work in broadcast client mode and receive broadcast messages on VLAN-
interface 2. 
<SwitchB> system-view 
[SwitchB] interface vlan-interface 2 
[SwitchB-Vlan-interface2] ntp-service broadcast-client 
Switch A and Switch B get synchronized upon receiving a broadcast message from Switch C.