103
[SwitchA-Vlan-interface2] ntp-service broadcast-client
4.
Configure Switch B:
# Enable the NTP service.
<SwitchB> system-view
[SwitchB] ntp-service enable
# Configure Switch B to operate in broadcast client mode and receive broadcast messages on
VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ntp-service broadcast-client
5.
Verify the configuration:
# Verify that Switch A has synchronized to Switch C, and the clock stratum level is 3 on Switch
A and 2 on Switch C.
[SwitchA-Vlan-interface2] display ntp-service status
Clock status: synchronized
Clock stratum: 3
System peer: 3.0.1.31
Local mode: bclient
Reference clock ID: 3.0.1.31
Leap indicator: 00
Clock jitter: 0.044281 s
Stability: 0.000 pps
Clock precision: 2^-18
Root delay: 0.00229 ms
Root dispersion: 4.12572 ms
Reference time: d0d289fe.ec43c720 Sat, Jan 8 2011 7:00:14.922
# Verify that an IPv4 NTP association has been established between Switch A and Switch C.
[SwitchA-Vlan-interface2] display ntp-service sessions
source reference stra reach poll now offset delay disper
********************************************************************************
[1245]3.0.1.31 127.127.1.0 2 1 64 519 -0.0 0.0022 4.1257
Notes: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured.
Total sessions: 1
NTP multicast mode configuration example
Network requirements
As shown in
, Switch C functions as the NTP server for multiple devices on different
network segments 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 multicast server mode and send multicast messages from
VLAN-interface 2.
•
Configure Switch A and Switch D to operate in multicast client mode and receive multicast
messages through VLAN-interface 3 and VLAN-interface 2, respectively.