How to Configure Time on Huawei OLT – NTP

HUAWEI OLT • NETWORKING TUTORIAL

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.

⚠️ Important: Demo Configuration Only

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.

SettingDemo Value
Management VLANVLAN 10
OLT Management IP192.168.10.10/24
Default Gateway192.168.10.1
Management Interfacevlanif10
NTP Server 1162.159.200.123
NTP Server 2162.159.200.1
NTP Server 3129.6.15.28
NTP Server 4129.6.15.29
TimezoneUTC +05:45
NTP ProtocolUDP/123
💡 Replace the demo values

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.

Huawei OLT CLI:
display time

Example output:

2026-09-06 13:08:11+05:45

If 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-view

Then configure the timezone:

timezone GMT+ 5:45

Verify the time:

display time
✓ Timezone configured

The 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:

NTP SERVER162.159.200.123
SOURCEvlanif10
PROTOCOLUDP/123
TIMEZONEUTC+05:45

The main command is:

ntp-service unicast-server 162.159.200.123 source-interface vlanif10
✓ Example configuration

The 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 vlanif10
⚠️ Check server availability

NTP 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 vlanif10
💡 Remember

This 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 status

Look for information indicating that the clock is synchronized rather than remaining unsynchronized.

Check NTP Sessions

display ntp-service sessions

Check Detailed NTP Session Information

display ntp-service sessions verbose

Check NTP Trace

display ntp-service trace

Check Current Time

display time
✓ What you want to see

A 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.1

Then test Internet connectivity:

ping 8.8.8.8
⚠️ Ping is not the same as NTP

A 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"
⚠️ Do not copy the WAN interface blindly

Replace YOUR-WAN-INTERFACE with the actual Internet interface used by your own MikroTik router.

NTP Traffic Path

OLT → Management VLAN → MikroTik → NAT → WAN → NTP Server

The NTP reply must then travel back through the same connection:

NTP Server → WAN → MikroTik → NAT → Management VLAN → OLT

Huawei OLT NTP Troubleshooting

1. NTP Shows Unsynchronized

Check:

display ntp-service status

Then check:

display ntp-service sessions verbose

If 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 vlanif10

4. 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 vlanif10

Useful Huawei OLT Time & NTP Commands

CommandPurpose
display timeDisplay current OLT date and time
display ntp-service statusCheck NTP synchronization status
display ntp-service sessionsDisplay NTP sessions
display ntp-service sessions verboseDisplay detailed NTP session information
display ntp-service traceCheck NTP synchronization trace
ping 192.168.10.1Test the demo management gateway
ping 8.8.8.8Test basic IP connectivity

Frequently Asked Questions

What is NTP?

NTP stands for Network Time Protocol. It is used to synchronize computer and network device clocks with a time source.

Which port does NTP use?

NTP normally uses UDP port 123.

What is the NTP command for Huawei OLT?

A typical configuration is:

ntp-service unicast-server 162.159.200.123 source-interface vlanif10
Why should I specify the source interface?

Specifying 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.

Does a successful ping mean NTP will work?

No. Ping uses ICMP while NTP uses UDP/123. A network can allow ICMP traffic while UDP/123 is blocked or filtered.

How do I check whether the Huawei OLT is synchronized?

Use:

display ntp-service status
Can I configure multiple NTP servers?

Yes. 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 vlanif10

After configuring NTP, use the Huawei OLT verification commands to confirm that the NTP session is active and the local clock has synchronized successfully.

✓ Final Reminder

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.

Huawei OLT NTP Network Time Protocol Huawei OLT Configuration ISP Networking Fiber Network MikroTik Networking Tutorial
About This Guide

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