beautypg.com

Ntp multicast mode configuration example, Network requirements – H3C Technologies H3C S6300 Series Switches User Manual

Page 49

background image

36

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ntp-service broadcast-client

4.

Configure Switch B:
# Enable the NTP service.

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:
# Switch A and Switch B get synchronized upon receiving a broadcast message from Switch C.
Display the NTP status of Switch A after clock synchronization.

[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^-10

Root delay: 0.00229 ms

Root dispersion: 4.12572 ms

Reference time: d0d289fe.ec43c720 Sat, Jan 8 2011 7:00:14.922

The output shows that Switch A has been synchronized to Switch C, the clock stratum level of

Switch A is 3, and that of Switch C is 2.
# Display IPv4 NTP association information for Switch A.

[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

The output shows that an association has been set up between Switch A and Switch C.

NTP multicast mode configuration example

Network requirements

As shown in

Figure 13

, Switch C functions as the NTP server for multiple devices on different network

segments and synchronizes the time among multiple devices.

Switch C's local clock is to be used as a reference source, with the stratum level 2.

Switch C operates in multicast server mode and sends out multicast messages from VLAN-interface
2.