290 CHAPTER 11: SYSTEM MANAGEMENT
Example: Configuring NTP Broadcast Mode
On SW77503, set local clock as the NTP master clock at stratum 2, and configure
to broadcast packets from Vlan-interface2. Configure SW77504 and SW77501 to
listen to the broadcast from their Vlan-interface2. See
Figure 66.
Configure Ethernet Switch SW77503:
1 Enter system view.
<SW77503>system-view
2 Set the local clock as the NTP master clock at stratum 2.
[SW77503]ntp-service refclock-master 2
3 Enter Vlan-interface2 view.
[SW77503]interface vlan-interface 2
4 Set it as broadcast server.
[SW77503-Vlan-Interface2]ntp-service broadcast-server
Configure Ethernet Switch SW77504:
1 Enter system view.
<SW77504>system-view
2 Enter Vlan-interface2 view.
[SW77504]interface vlan-interface 2
[SW77504-Vlan-Interface2]ntp-service broadcast-client
Configure Ethernet Switch SW77501:
1 Enter system view.
<SW77501>system-view
2 Enter Vlan-interface2 view.
[SW77501]interface vlan-interface 2
[SW77501-Vlan-Interface2]ntp-service broadcast-client
The above examples configured SW77504 and SW77501 to listen to the
broadcast through Vlan-interface2, SW77503 to broadcast packets from
Vlan-interface2. Since SW77501 and SW77503 are not located on the same
segment, they cannot receive any broadcast packets from SW77503, while
SW77504 is synchronized by SW77503 after receiving its broadcast packet.
After the synchronization, you can find the state of SW77504 as follows:
[SW77504]display ntp-service status
clock status: synchronized
clock stratum: 8
reference clock ID: LOCAL(0)
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17