Can NTP be used to change clocks on S series switches

18

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.

Other related questions:
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.

Configure NTP on S series switches
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

Does the clock work properly after an S series fixed switch is powered off
If some models and versions of S series fixed switches (except S1700 switches) are powered off, the clock can recover. For some other models and versions, the clock cannot recover. For details, see the following: - For switches running a version earlier than V100R006: The system clock of a switch is implemented by the software. The system saves the system clock if the switch is powered off and restarted manually. If the switch is powered off due to a power failure, the system time is restored to the factory setting. - For switches running V100R006 or V200R001: The system clock of the S3700HI, S5700HI, or S6700 is implemented by the hardware. The system obtains the clock from the hardware if the switch is powered off and restarted manually. System clocks of other models are implemented by the software. The system saves the system clock if a switch is powered off and restarted manually. If the switch is powered off due to a power failure, the system time is restored to the factory setting. - For switches running V200R002 and V200R003: The system clock of the S5700HI or S6700 is implemented by the hardware. The system obtains the clock from the hardware if the switch is powered off and restarted manually. System clocks of other models are implemented by the software. The system saves the system clock if the switch is powered off and restarted manually. If the switch is powered off due to a power failure, the system time is restored to the factory setting. - For switches running V200R005 or a later version: The system clock of the S5700 or S6700 is implemented by the hardware. The system obtains the clock from the hardware if the switch is powered off and restarted manually. System clocks of other models are implemented by the software. The system saves the system clock if a switch is powered off and restarted manually. If the switch is powered off due to a power failure, the system time is restored to the factory setting.

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.

Why is the time of the NTP client greatly different from that on a CE series switch that serves as an NTP server after the NTP clock is synchronized
An NTP client or NTP server sets the time zone, which cannot be synchronized by NTP. For example, the time on an NTP server is set to Beijing time (UTC+8), but an NTP client uses the system default UTC time zone. Therefore, the clock between the NTP client and NTP server is 8 hours apart after clock synchronization. You are advised to set the same time zone for the NTP server and NTP client during NTP clock synchronization. Otherwise, the clock between them is greatly different after the synchronization.

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