Configure NTP on S series switches

44

S series switches (except S1700 switches) use NTP to synchronize clocks in the following modes: unicast NTP server/client, peer, broadcast, multicast, and manycast.
The following is an example of synchronizing clock of Switch B with that of Switch A in the unicast NTP server/client mode.
# Set the local clock of Switch A as the NTP master clock, and set the clock stratum to 2.
[SwitchA] ntp-service refclock-master 2
# On Switch B, specify Switch A as its NTP server.
[SwitchB] ntp-service unicast-server 10.0.0.1

Other related questions:
Versions of NTP supported by S series switches
S series switches support NTPv1, NTPv2, NTPv3, and NTPv4. NTPv4 applies to both IPv4 and IPv6 networks. The NTP version does not need to be configured on the NTP server and the packet version depends on that of packets sent by a client: If a client sends a packet in version 3, the server replies with a packet in version 3. If a client sends a packet in version 4, the server replies with a packet in version 4.

Can an S series switch function as the NTP server
The following is an example of configuring the NTP server function in broadcast mode. [HUAWEI] ntp-service refclock-master 3 //Configure the local clock as the NTP master clock. [HUAWEI] undo ntp-service server disable //Enable the IPv4 NTP server function. [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 //Configure an IP address for the server. [HUAWEI-Vlanif100] ntp-service broadcast-server //Configure the local switch as the NTP broadcast server.

How S series switches select an NTP server
S series switches (except S1700 switches) select an NTP server as follows: Question: After an NTP server is configured for S1, S2 configures S1 and the NTP server as active/standby NTP servers and sets the priority of S1 to be higher than that of the NTP server. Which NTP server takes effect for S2? Answer: S1, as an NTP client, belongs to an NTP server. When both S1 and the NTP server are configured as the NTP servers for S2, the priority of S1 is lower than the priority of the NTP server regardless of the priority settings on S2. Therefore, the NTP server of S1 takes effect for S2. The NTP server priority settings only take effect for the NTP servers irrelevant to each other.

Can NTP be used to change clocks on S series switches
The Network Time Protocol (NTP) is used to synchronize clocks of the distributed time server and a client. You can configure NTP on a switch to synchronize the clock of the switch with that of the NTP server.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top