Introduction #
This guide is for beginners to Mikrotik who are looking to setup their router for TM UniFi in Malaysia. Mikrotik RouterOS may look daunting to a newcomer but it’s actually quite easy for a basic setup.
Before we begin, here is some information on UniFi. Some of it is technical but don’t worry about it if you don’t know what a VLAN is.
- UniFi is a FTTH service by Telekom Malaysia (TM) in the country of Malaysia. It delivers triple-play services via fibre or xDSL.
- It bears no relation to Ubiquiti.
- Authentication is by PPPoE username and password.
- Triple-play services are delivered via VLANs.
- VLAN id 500 for Internet.
- VLAN id 600 for HyppTV (IPTV).
- VLAN id 400 for VOIP.
- This guide is specific to UniFi but if your ISP uses a similar system (PPPoE and VLANs), the steps are kinda similar.
Step-by-Step Configuration – Internet #
So let’s start. We will configure the Internet first. Get the following ready:
- Your UniFi username which looks like myname@unifi or myname@unifibiz for business accounts.
- Your UniFi password which, if generated by TM, is usually a case sensitive 13 character alphamumeric string.
- The TM supplied UniFi BTU or Broadband Termination Unit which could be an optical network terminal (ONT) or a xDSL modem.
- A Mikrotik router.
To configure the router, we use either:
- winbox which is a Windows app. I’ll be using this for the guide. Get it from http://www.mikrotik.com/download
- or any modern web browser.
Default Configuration #
One more thing before we start. This guide presumes a router with an out-of-the-box default configuration. This is very important so that we start on the same page and not get confused. If it’s not, please reset the router to its default configuration before starting.
See Manual:Configuration_Management#Configuration_Reset or Manual:Reset on how to reset your router.
Connect the Cables #
- Connect a cable from Ethernet Port 1 of the BTU to Ethernet Port 1 of the Mikrotik router. The port numbers are important.
- Connect a computer to Ethernet Port 2 of the router.
- Ensure that your computer is set to acquire an IP address automatically.
Login to the Mikrotik Router #
Login to the router using either winbox or a web browser. Using a web browser looks similar. I think you’ll figure it out.
Login to the Mikrotik router with the following:
- Default IP address: 192.168.88.1
- Username: admin
- Password: (no password)
Quick Set #
We’ll use Quick Set to get a headstart on the configuration.
- Click on Quick Set.
Set as Home AP and enter UniFi username & password
- Select Home AP.
- Select PPPoE.
- Enter UniFi username and password.
- OK
Note: While you’re here, also set your wifi to a cooler name and give it a password.
VLAN 500
- Click Interfaces
- Click VLAN
- Create a new VLAN
- Give it a name e.g.: vlan500
- Set VLAN ID: 500
- Ensure Interface is: ether1-gateway
- OK
PPPoE #
1) Click VLAN
2) Create a new VLAN
3) Give it a name e.g.: vlan500
4) Set VLAN ID: 500
5) Ensure Interface is: ether1-gateway
6) OK
That’s it.
Internet should be working now.
Step-by-Step Configuration – HyppTV #
Next we’ll setup HyppTV.
For HyppTV we’ll be using Ethernet Port 5. So connect your HyppTV Set Top Box (STB) to this port.
Ethernet Port 5 #
#
- Click Interfaces
- Double click ether5-slave-local
- Change Master Port to: none
- OK
VLAN 600 #
- Click Interfaces
- Click VLAN
- Create a new VLAN
- Give it a name e.g.: vlan600iptv
- Set VLAN ID: 600
- Ensure Interface is: ether1-gateway
- OK
#
Bridge #
- Click Bridge
- Create a new Bridge
- Give it a name e.g.: unifi.iptv
- OK
Bridge Ports #
- Click Bridge
- Click Ports
- Add a port
- Set Interface to: ether5-slave-local
- Set Bridge to: unifi.iptv (that’s the bridge that you just created above)
- Add another port
- Set Interface to: vlan600iptv
- Set Bridge to: unifi.iptv
- OK
And that’s it. Remember to plug your HyppTV Set Top Box (STB) into Ethernet Port 5. Switch on your HyppTV STB and enjoy.
Unifi Fibre
LAN1 INTERNET VLAN 500
LAN2 INTERNET VLAN 500
LAN3 INTERNET VLAN 500
LAN4 IPTV VLAN 600
Related posts:
Maxis Fibre VLAN Setting at Router