Knowledge Base

Huawei OLT preconfiguration

Huawei OLT initial steps


In this post you'll find step by step instructions for initial OLT configuration and for setting up the IP connectivity of any HUAWEI OLT. After completing these steps, you'll be ready to connect your OLT to SmartOLT.

1Connect to the OLT

  • Ethernet / Telnet or SSH: a network cable to the ETH management port of a factory-new OLT, or the network path of an OLT you can already reach.
  • Serial / Console: a console cable to the serial console port of the OLT, without any network setup.
Ethernet connection (Telnet or SSH)
The factory IP address of a Huawei OLT is 10.11.104.2. If the OLT is already configured, enter its current IP address.
  1. On a factory-new OLT, connect an Ethernet cable to the dedicated (out-of-band) management port. It is labeled ETH, and the OLT software calls it meth0. This port is for management only and cannot carry customer traffic. If the OLT is already reachable over your network, keep the existing cabling.
  2. When you connect directly to the factory IP, configure 10.11.104.1/255.255.255.0 on your PC, or on the MikroTik port connected to the OLT management port.
  3. Verify connectivity. You should receive replies.

    ping 10.11.104.2

  4. Connect with PuTTY or from a terminal, using Telnet or SSH.

    Telnet sends everything, including the password, as plain text. Use it only on a direct cable or a trusted management network. In PuTTY, select Telnet and enter the OLT IP address.

    telnet 10.11.104.2

    SSH encrypts the session. It works only if the SSH server is enabled on the OLT and the account is allowed to log in over SSH.

    PuTTY: Enter the OLT IP address in Host Name (or IP address), select SSH, then click Open. Log in with your OLT username and password.

    Terminal (OpenSSH): Run the command below in your computer's terminal.

    ssh root@10.11.104.2

  5. Log in. On a factory-new OLT the username is root and the password is admin. For R017 and newer firmware the root password is admin123. On an OLT that is already configured, use its existing account.
    >>User name:root
    >>User password:
    MA5608T>
Serial / Console connection
From a PC (PuTTY)
  1. Connect a console cable with the correct pinout to the serial console port of the OLT.
  2. If your PC has no serial port, use a USB-to-serial adapter.
  3. Find the COM port of the adapter in Windows Device Manager (Windows+X), under Ports (COM & LPT).
  4. In PuTTY, select Serial, enter the COM port and the speed. Set the other values under Connection > Serial:
    • Speed: 9600
    • Data bits: 8
    • Parity: None
    • Stop bits: 1
    • Flow control: None
  5. Open the session and press Enter. When the OLT asks for a login, use root / admin on a factory-new OLT (admin123 for R017 and newer firmware), or the existing account on a configured OLT.
Through a MikroTik

Use the MikroTik serial console port with a compatible cable to the OLT console port. The cable must match the pinout of both serial ports; an RJ45 connector alone does not establish compatibility. Open a MikroTik Terminal through WinBox or SSH over the network.

  1. Free the serial port and open the serial session:
    /system console disable [find where port=serial0]
    /system serial-terminal serial0
  2. Press Ctrl+A, release the keys, then press R to detect the baud rate automatically. Press Enter to reach the OLT console.

To close the serial session, press Ctrl+A, release the keys, then press Q.

MikroTik serial terminal documentation

Enter privileged mode

If the prompt ends with ">", enter enable. The prompt changes to MA5608T#.

MA5608T> enable
MA5608T#

2Display and confirm the detected OLT boards

MA5608T>
MA5608T> enable
MA5608T# config
MA5608T(config)# display board 0

A list with the OLT boards will be displayed.
Confirm the boards that have the Auto_find status:

MA5608T(config)# board confirm 0/0
MA5608T(config)# board confirm 0/1
MA5608T(config)# board confirm 0/2
...
MA5608T(config)# display board 0
Now your OLT boards should be in Normal or Active_normal status.

3Configure a new management IP address on the meth0 or VLAN interface

Select the interface of the management IP

MA5608T> enable
MA5608T# config
MA5608T(config)# interface meth0
MA5608T(config)# ip address 10.200.0.2 255.255.255.0

If you connected over Ethernet using the old IP address, reconnect on the new IP address 10.200.0.2.

Add the default gateway and save configuration:

Make sure the default gateway IP address 10.200.0.1 is already configured on your router.

MA5608T> enable
MA5608T# config
MA5608T(config)# undo ip route-static 0.0.0.0 0.0.0.0
MA5608T(config)# ip route-static 0.0.0.0 0.0.0.0 10.200.0.1
MA5608T(config)# save
Press Enter again to confirm the save action of both data and configuration.

4Create a dedicated username/password

This user/pass will be used by SmartOLT to connect to your OLT.

MA5608T> enable
MA5608T# config
MA5608T(config)# terminal user name
User Name(length<6,15>): smartoltusr
User Password(length<6,15>): (insert a strong password here)
Confirm Password(length<6,15>): (confirm the password)
User profile name(<=15 chars)[root]: (press ENTER)
User's Level:
1. Common User 2. Operator 3. Administrator: 3
Permitted Reenter Number(0--20): 20
User's Appended Info(<=30 chars): (press ENTER or a comment like SmartOltUser)
Adding user successfully
Repeat this operation? (y/n)[n]: n

For safety, change the root password:
MA5608T(config)# terminal user password
User Name(<=15 chars): root
New Password(length<6,15>): (insert a strong password here)
Confirm Password(length<6,15>): (confirm the password)
Information takes effect
Repeat this operation? (y/n)[n]: n

5Enable telnet and SNMP

In some cases, depending on the OLT firmware version, these extra commands are needed:

MA5608T# config
MA5608T(config)# sysman service telnet enable
MA5608T(config)# sysman service snmp enable

Finally, make sure no firewall is enabled for the services:
MA5608T(config)# sysman firewall telnet disable
MA5608T(config)# sysman firewall snmp disable

Some Huawei versions (R019 and later) require that the telnet/snmp is bind to all the interfaces:
MA5608T(config)# sysman server source telnet any-interface
MA5608T(config)# sysman server source snmp any-interface


Setup complete

At this stage, your OLT is ready to be interconnected with SmartOLT.

Open your SmartOLT site, go to Settings → OLTs → Add OLT, fill in the fields displayed, click Test connection, and then Save.



# Other general settings (If you use SmartOLT, these are configured automatically, no need to configure them manually):

MA5608T>
MA5608T> enable
MA5608T# config
MA5608T(config)# autosave interval 1442
MA5608T(config)# autosave type all
MA5608T(config)# autosave interval configuration 480
MA5608T(config)# autosave interval on
MA5608T(config)# ntp-service unicast-server 216.239.35.4 version 4
MA5608T(config)# ntp-service unicast-server 162.159.200.123 version 4