Huawei GPON configuration

We got Huawei MA5800-X7 device to help our customers with GPON integration. In this article you can find useful commands that help during configuration. Huawei instead of “show” uses “display” command. Also there is enable mode, similar to Cisco devices. If we need to delete part of configuration – use “undo some_command” instead of “no some_command”.

Let’s display basic information of the system :
display version
shows version of equipment and OS running on it.

this shows interfaces, for example MEth0, it’s now showing GPON ports.
display interface

The most important commands showing running and startup configurations.
display saved-configuration
display saved-configuration

get information about configured IPs and also routing table.
display ip interfaces
display ip routing-table

Let’s set user and config default route quickly :
ip route-static
ssh user "test" authentication-type password

Before configuring GPON and VLANs we need to install physical cards to chassis slots and initiate them with commands similar to :

This command is adding a card on board 0, slot 5. And it’s defining that it’s 16 port GPON card.
In our case we have one H901GPHF(GPON 16 port) and H901MPLA(SFP+ Ethernet) cards.
board add 0/5 H901GPHF

GPON configuration step by step :

1. SET VLANS. ID depends on design, let’s assume that 100 is management, 200 Internet, 300 voice and 400 is IPTV.
vlan 100 smart
vlan 200 smart
vlan 300 smart
vlan 400 smart

Our UPLINK port is located in board 0, slot 0, SFP port 0. It means “0/8 0”


port vlan 100 0/8 0
port vlan 200 0/8 0
port vlan 300 0/8 0
port vlan 400 0/8 0

3. Defining DBA profiles. This defines upload speed (capability of the service on one ONT).
Here it says that upload for MGNT is maximum 1Mbps, for Internet is from 10Mbps to 200Mbps, Voice is 4Mbps and TV is up to 5 Mbps.

dba-profile add profile-id 100 profile-name "MGNT" type1 fix 1024
dba-profile add profile-id 102 profile-name "INTERNET" type3 assure 10000 max 200000
dba-profile add profile-id 103 profile-name "VOICE" type1 fix 4096
dba-profile add profile-id 104 profile-name "CUSTOM_TV" type1 fix 5192

4. Traffic tables configuration. Now let’s define real speed limitation.
We define MGNT to 1 Mbps Up and down, Voice to 4 Mbps, TV to 10 Mbps and Internet to 100/20 Mbps.

traffic table ip index 100 name "MGNT" cir 512 cbs 329680 pir 1024 pbs 329680 color-mode color-blind priority 7 priority-policy local-setting
traffic table ip index 101 name "INTERNET_100_DOWN" cir 10000 cbs 329680 pir 100000 pbs 329680 priority 0 priority-policy local-Setting
traffic table ip index 102 name "INTERNET_20_UP" cir 4096 cbs 329680 pir 20000 pbs 329680 priority 0 priority-policy local-Setting
traffic table ip index 103 name "VOICE_SMART" cir 2048 cbs 329680 pir 4096 pbs 329680 color-mode color-blind priority 7 priority-policy local-setting
traffic table ip index 104 name "CUSTOM_TV_COOL" cir 5192 cbs 329680 pir 10240 pbs 329680 color-mode color-blind priority 7 priority-policy local-setting

ont-lineprofile gpon profile-id 20 profile-name "FTTH-100"
Here we defined ont-lineprofile for FTTH-100 tariff bundle, that includes voice, IPTV, internet and management.

Following configuration lines are put under ont-lineprofile config :

tcont 1 dba-profile-id 100
tcont 2 dba-profile-id 102
tcont 3 dba-profile-id 103
tcont 4 dba-profile-id 104

gem add 1 eth tcont 1
gem add 2 eth tcont 2
gem add 3 eth tcont 3
gem add 4 eth tcont 4

gem mapping 1 1 vlan 100
gem mapping 2 2 vlan 200
gem mapping 3 3 vlan 300
gem mapping 4 4 vlan 400



ont-srvprofile gpon profile-id 20 profile-name "FTTH-100"
ont-port pots adaptive eth adaptive


Auto find can be enabled this way:

interface gpon 0/5
port 0 ont-auto-find enable


interface gpon 0/5
ont add 0 1 sn-auth "4857544352E92103" omci ont-lineprofile-id 20 ont-srvprofile-id 20 desc "CUSTOMER-1"

8. The last are the most difficult commands – it’s defining service ports for each VLAN for ONT

service-port 1001 vlan 100 gpon 0/5/0 ont 1 gemport 1 multi-service user-vlan 100 tag-transform translate inbound traffic-table index 10 outbound traffic-table index 10
service-port 1002 vlan 200 gpon 0/5/0 ont 1 gemport 2 multi-service user-vlan 200 tag-transform translate inbound traffic-table index 102 outbound traffic-table index 101
service-port 1003 vlan 300 gpon 0/5/0 ont 1 gemport 3 multi-service user-vlan 300 tag-transform translate inbound traffic-table index 103 outbound traffic-table index 103
service-port 1004 vlan 400 gpon 0/5/0 ont 1 gemport 4 multi-service user-vlan 400 tag-transform translate inbound traffic-table index 104 outbound traffic-table index 104

When everything is configured, there are few helpful commands for displaying status :

Show all configured ONT devices
display ont info 0 5 0 all
display ont info summary 0/5
display service-port all

Show auto discovered ONTs
display ont autofind all

Show physical module installed on Huawei OLT chassis
display board 0

Show specific module installed
display board 0/SlotID
display board 0/5

Show all configuration
display display current-configuration

Show GPON dba profile
display dba-profile all

Show traffic table that is used for speed limitations
display traffic table ip from-index 0

Show service port
display service-port all

Show ont lineprofile
display ont-lineprofile gpon all

Show ont service profile
display ont-srvprofile gpon all

How to remove ONT from configured Huawei ONL.
First step is to delete all associated service ports:
undo service-port 1001
undo service-port 2001
undo service-port 3001
undo service-port 4001

Second step is to delete ONT itself :
interface gpon 0/5
ont delete 0 0

Should you have any questions regarding the GPON configuration or further information is needed, please contact us or schedule a call with our engineer.


Starting from Splynx v.3.0 we have added native support of IPv6. Find out more.

Mikrotik Winbox for MAC OS

As many MAC OS users we were fighting with installing Winbox to our MACs.

Winbox is a very nice tool, probably one of the best for network management and configuration. The safest way is to run Wine HQ and run native Winbox for windows on it. Here are the steps how to install Mikrotik Winbox on MAC OS Catalina 10.15.4.

    1. At first we need to install WINE HQ. It’s available for free on the website –
    2. To install the WINE HQ, we need to install Xquartz package. Please note that the Xquartz package 2.7.11 is breaking fonts in Windows apps that are running in Wine. That’s why we recommend to use the Xquarts 2.7.9. You can get the package here –
    3. When both packages are installed, it’s time to download latest Winbox from Mikrotik website

Now we can open the Winbox, it will run Wine HQ automatically, it also allows to open multiple windows and connect to different routers :


There are a lot of useful tools out there that might help you to run ISP business, but most of them don’t properly meet all needs of Internet providers.

SPLYNX is a powerful all-in-one software solution tailormade for ISPs to handle billing, BSS & OSS. Leading Internet providers that have hundreds or thousands of subscribers can easily integrate SPLYNX into their businesses to eliminate manual billing in the company,  improve network management and radius server, make use of own CRM, Helpdesk, Scheduling and Inventory management modules.

More than 400 ISP companies form different parts of the world scaled their business with Splynx. 

Let us show you how we do it, you won’t be sorry 🙂