302
C
35: NTP C
HAPTER
NTP Peer Mode
Configuration
ONFIGURATION
note: 1 source(master),2 source(peer),3 selected,4 candidate,5
configured
Network requirements
S4200G 2 sets the local clock to be the NTP master clock, with the clock stratum
being 2.
Configure an S4200G 1 series switch to operate as a client, with S4200G 2 as the
time server. S4200G 2 will then operate in the server mode automatically. Meanwhile,
S4200G 3 sets the S4200G 1 series switch to be its peer.
This example assumes that:
S4200G 2 is a switch that allows its local clock to be the master clock.
■
S4200G 3 is a switch that allows its local clock to be the master clock and the
■
stratum of its clock is 1.
Network diagram
Figure 95 Network diagram for NTP peer mode configuration
Configuration procedures
1 Configure the S4200G 1 series switch.
a Set S4200G 2 to be the time server.
<S4200G> system-view
System View: return to User View with Ctrl+Z.
[S4200G] ntp-service unicast-server 3.0.1.31
2 Configure S4200G 3 (after the S4200G 1 series switch is synchronized to S4200G 2).
a Enter system view.
<S4200G> system-view
System View: return to User View with Ctrl+Z.
[S4200G]
b After the local synchronization, set the S4200G 1 series switch to be its peer.
[S4200G3] ntp-service unicast-peer 3.0.1.32
The S4200G 1 series switch and S4200G 3 are configured to be peers with regard to
each other. S4200G 3 operates in active peer mode, while the S4200G 1 series switch
operates in passive peer mode. Because the stratum of the local clock of S4200G 3 is
1, and that of the S4200G 1 switch is 3, the S4200G 1 series switch is synchronized
to S4200G 3.