How to Configure Time on Huawei OLT – NTP
Contents
- 1. How to Configure Time on Huawei OLT
- 1.1. Requirements
- 1.2. Demo Network Configuration
- 1.3. Step 1: Check Current Huawei OLT Time
- 1.4. Step 2: Configure Nepal Timezone
- 1.5. Step 3: Configure NTP Server on Huawei OLT
- 1.6. Step 4: Configure Multiple NTP Servers
- 1.7. Complete Demo Configuration
- 1.8. Step 5: Verify NTP Synchronization
- 1.9. Step 6: Check Network Connectivity
- 1.10. Huawei OLT Behind a MikroTik Router
- 1.11. Huawei OLT NTP Troubleshooting
- 1.12. Useful Huawei OLT Time & NTP Commands
- 1.13. 🔗 Related Networking Guides
- 1.14. Frequently Asked Questions
- 1.15. Conclusion
How to Configure Time on Huawei OLT
Learn how to configure Nepal Time, NTP servers, source interfaces, and verify time synchronization on a Huawei OLT with practical CLI examples.
Correct time configuration is important when managing a Huawei OLT. An accurate system clock makes system logs, alarms, troubleshooting, monitoring and network maintenance much easier.
Huawei OLTs can synchronize their clock automatically using NTP (Network Time Protocol). You can also configure the correct timezone so that the synchronized time is displayed correctly.
In this tutorial, we will use a completely fictional network configuration for demonstration purposes. You should replace the example IP addresses, VLAN IDs and interface names with the values used in your own network.
All IP addresses, VLAN IDs, gateway addresses, management addresses and interface names shown in this article are demonstration values. They are not related to any specific ISP or production network.
Change the example values to your own network IP addresses before applying the configuration.
Requirements
Before configuring NTP on your Huawei OLT, make sure the OLT has connectivity to an accessible NTP server.
- Huawei OLT CLI administrator access
- Management VLAN configured
- Management IP address configured
- Default gateway configured
- Internet or internal NTP connectivity
- UDP port 123 allowed where required
Demo Network Configuration
To keep this tutorial safe for public sharing, we will use a fictional management network.
| Setting | Demo Value |
|---|---|
| Management VLAN | VLAN 10 |
| OLT Management IP | 192.168.10.10/24 |
| Default Gateway | 192.168.10.1 |
| Management Interface | vlanif10 |
| NTP Server 1 | 162.159.200.123 |
| NTP Server 2 | 162.159.200.1 |
| NTP Server 3 | 129.6.15.28 |
| NTP Server 4 | 129.6.15.29 |
| Timezone | UTC +05:45 |
| NTP Protocol | UDP/123 |
The network above is only an example. Replace 192.168.10.10, 192.168.10.1, vlanif10 and other values with your own network configuration.
Step 1: Check Current Huawei OLT Time
Before making any changes, check the current date and time configured on the OLT.
display timeExample output:
2026-09-06 13:08:11+05:45If the timezone or clock is incorrect, continue with the next steps.
Step 2: Configure Nepal Timezone
Nepal Standard Time is UTC+05:45. If your Huawei OLT is being used in Nepal, configure the appropriate timezone so that the displayed time matches Nepal local time.
Enter system configuration mode:
system-viewThen configure the timezone:
timezone GMT+ 5:45Verify the time:
display timeThe timezone controls how the OLT displays the synchronized clock. NTP is responsible for obtaining the accurate time.
Step 3: Configure NTP Server on Huawei OLT
NTP allows the Huawei OLT to synchronize its clock automatically instead of relying on manually configured time.
For this example, we will use the following NTP server:
The main command is:
ntp-service unicast-server 162.159.200.123 source-interface vlanif10The command above tells the Huawei OLT to use 162.159.200.123 as its NTP server and use vlanif10 as the source interface.
Step 4: Configure Multiple NTP Servers
Using multiple NTP servers can provide redundancy if one server becomes unavailable.
Example configuration:
ntp-service unicast-server 162.159.200.123 source-interface vlanif10
ntp-service unicast-server 162.159.200.1 source-interface vlanif10
ntp-service unicast-server 129.6.15.28 source-interface vlanif10
ntp-service unicast-server 129.6.15.29 source-interface vlanif10NTP servers can change policies or availability over time. If a particular server does not respond, test another reliable NTP source rather than assuming that Internet connectivity is broken.
Complete Demo Configuration
A basic example using the fictional management network from this tutorial would look like:
system-view
timezone GMT+ 5:45
ntp-service unicast-server 162.159.200.123 source-interface vlanif10
ntp-service unicast-server 162.159.200.1 source-interface vlanif10
ntp-service unicast-server 129.6.15.28 source-interface vlanif10
ntp-service unicast-server 129.6.15.29 source-interface vlanif10This is a demo configuration. Change vlanif10 to the management VLAN interface used by your own Huawei OLT.
Step 5: Verify NTP Synchronization
After configuring the NTP server, allow some time for the OLT to communicate with the server and synchronize its clock.
Check NTP Status
display ntp-service statusLook for information indicating that the clock is synchronized rather than remaining unsynchronized.
Check NTP Sessions
display ntp-service sessionsCheck Detailed NTP Session Information
display ntp-service sessions verboseCheck NTP Trace
display ntp-service traceCheck Current Time
display timeA healthy NTP session should show a valid NTP source and eventually indicate that the local clock is synchronized.
Step 6: Check Network Connectivity
NTP requires network connectivity between the OLT and the NTP server. Start by checking the management gateway.
ping 192.168.10.1Then test Internet connectivity:
ping 8.8.8.8A successful ping only proves that ICMP traffic works. NTP uses UDP port 123, so UDP/123 must also be permitted through the network.
Huawei OLT Behind a MikroTik Router
In many ISP networks, the Huawei OLT management network is a private IP network and Internet access is provided through a MikroTik router.
In that situation, source NAT may be required for the OLT management subnet.
For example, if the fictional management subnet in this tutorial is 192.168.10.0/24, a demonstration MikroTik NAT rule could be:
/ip firewall nat add \
chain=srcnat \
src-address=192.168.10.0/24 \
out-interface="YOUR-WAN-INTERFACE" \
action=masquerade \
comment="NAT Demo OLT Management"Replace YOUR-WAN-INTERFACE with the actual Internet interface used by your own MikroTik router.
NTP Traffic Path
The NTP reply must then travel back through the same connection:
NTP Server → WAN → MikroTik → NAT → Management VLAN → OLTHuawei OLT NTP Troubleshooting
1. NTP Shows Unsynchronized
Check:
display ntp-service statusThen check:
display ntp-service sessions verboseIf the session shows reach: 0, the OLT may not be receiving valid NTP responses.
2. OLT Has Internet but NTP Does Not Work
This is a common troubleshooting scenario.
Check the following:
- NTP server IP address
- Source interface
- Management VLAN connectivity
- Default gateway
- NAT configuration
- Firewall rules
- UDP port 123
- Return traffic from the NTP server
3. Check the NTP Source Interface
If the OLT has multiple VLAN interfaces, explicitly specifying the source interface can make NTP troubleshooting much easier.
Example:
ntp-service unicast-server 162.159.200.123 source-interface vlanif104. Try Another NTP Server
If one NTP server does not respond, test another configured server.
ntp-service unicast-server 162.159.200.1 source-interface vlanif10Useful Huawei OLT Time & NTP Commands
| Command | Purpose |
|---|---|
display time | Display current OLT date and time |
display ntp-service status | Check NTP synchronization status |
display ntp-service sessions | Display NTP sessions |
display ntp-service sessions verbose | Display detailed NTP session information |
display ntp-service trace | Check NTP synchronization trace |
ping 192.168.10.1 | Test the demo management gateway |
ping 8.8.8.8 | Test basic IP connectivity |
🔗 Related Networking Guides
Explore more networking tutorials and practical ISP configuration guides:
→ Networking Tutorials → MikroTik Tutorials → Huawei OLT Tutorials → More Networking GuidesFrequently Asked Questions
NTP stands for Network Time Protocol. It is used to synchronize computer and network device clocks with a time source.
NTP normally uses UDP port 123.
A typical configuration is:
ntp-service unicast-server 162.159.200.123 source-interface vlanif10Specifying the source interface tells the OLT which interface should be used for NTP communication. This is useful when the OLT has multiple VLAN interfaces or management networks.
No. Ping uses ICMP while NTP uses UDP/123. A network can allow ICMP traffic while UDP/123 is blocked or filtered.
Use:
display ntp-service statusYes. Multiple NTP servers can be configured to provide alternative time sources and improve availability.
Conclusion
Configuring the correct time on a Huawei OLT is an important part of maintaining a reliable network. Correct time makes logs, alarms, monitoring and troubleshooting much easier.
For a demo management interface named vlanif10, the key NTP command is:
ntp-service unicast-server 162.159.200.123 source-interface vlanif10After configuring NTP, use the Huawei OLT verification commands to confirm that the NTP session is active and the local clock has synchronized successfully.
Always replace the demo VLAN, management IP, gateway, interface and other network values with your own configuration before applying these commands in a production environment.
This tutorial is designed as a practical reference for ISP technicians, network engineers and network administrators working with Huawei OLT equipment.
More networking guides: madankc.com.np
