
35
6.
Configure Switch A:
# Enable the NTP service.
<SwitchA> system-view
[SwitchA] ntp-service enable
# Configure Switch A to operate in multicast client mode and receive multicast messages on
VLAN-interface 3.
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ntp-service multicast-client
7.
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-interface3] 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.165741 s
Stability: 0.000 pps
Clock precision: 2^-10
Root delay: 0.00534 ms
Root dispersion: 4.51282 ms
Reference time: d0c61289.10b1193f Wed, Dec 29 2010 20:03:21.065
# Verify that an IPv4 NTP association has been established between Switch A and Switch C.
[SwitchA-Vlan-interface3] display ntp-service sessions
source reference stra reach poll now offset delay disper
********************************************************************************
[1234]3.0.1.31 127.127.1.0 2 247 64 381 -0.0 0.0053 4.5128
Notes: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured.
Total sessions: 1
IPv6 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 the stratum level 2.
•
Configure Switch C to operate in IPv6 multicast server mode and send out IPv6 multicast
messages from VLAN-interface 2.
•
Configure Switch A and Switch D to operate in IPv6 multicast client mode and receive IPv6
multicast messages through VLAN-interface 3 and VLAN-interface 2, respectively.