102
Total sessions: 1
NTP broadcast mode configuration example
Network requirements
As shown in
, Switch C functions as the NTP server for multiple devices on a network
segment and synchronizes the time among multiple devices.
•
Configure Switch C's local clock as a reference source, with stratum level 2.
•
Configure Switch C to operate in broadcast server mode and send broadcast messages from
VLAN-interface 2.
•
Configure Switch A and Switch B to operate in broadcast client mode, and listen to broadcast
messages through VLAN-interface 2.
Figure 40
Network diagram
Configuration procedure
1.
Assign an IP address to each interface, and make sure Switch A, Switch B, and Switch C can
reach each other, as shown in
. (Details not shown.)
2.
Configure Switch C:
# Enable the NTP service.
<SwitchC> system-view
[SwitchC] ntp-service enable
# Specify the local clock as the reference source, with stratum level 2.
[SwitchC] ntp-service refclock-master 2
# Configure Switch C to operate 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.
Configure Switch A:
# Enable the NTP service.
<SwitchA> system-view
[SwitchA] ntp-service enable
# Configure Switch A to operate in broadcast client mode and receive broadcast messages on
VLAN-interface 2.
[SwitchA] interface vlan-interface 2
Vlan-int2
3.0.1.31/24
Vlan-int2
3.0.1.32/24
Vlan-int2
3.0.1.30/24
Switch A
NTP broadcast client
Switch C
NTP broadcast server
Switch B
NTP broadcast client