Unifi Using Custom Routers
| UPDATE 27th January 2011 : TM has released the 7.09 firmware for the D-Link 615 G1/G2. This new firmware is a little buggy so you may or may not be able to utilize it for ‘VLAN bridging’ (as described in Method 2 of this guide). If that is the case, head over to the Downloads section and pick up a copy of the 7.05 or 7.05B firmware for your DIR-615 hardware revision. You should be able to downgrade the firmware to 7.05/7.05B through the stock TM 7.09 firmware interface without needing to boot into Emergency Room mode (which is described in the DD-WRT flashing guide). User carcdm from Lowyat forums has confirmed that this is possible. |
The Standard Unifi Setup
The standard Unifi hardware setup is as described below :

Note that in this diagram, the IPTV set top box actually connects to port 4 on the DIR-615. It’s not mentioned because I would rather focus on the key components for Internet access alone.
Anyway, there are currently a few different methods to use a custom/your own router with Unifi and they are :
- Reflashing the TM DIR-615 to dd-wrt. I don’t recommend this because you will lose IPTV access.
- Using a secondary wireless router/AP connected to the DIR-615 to act as a new access point. You can keep your IPTV access but I don’t recommend this either because all this does is take over the wireless functionality of the DIR-615. Routing, conntrack and NAT (well, Internet traffic load) is still handled by the DIR-615 so your DIR-615 will still crash under heavy connection load.
- Using the DIR-615 as a VLAN bridge. This is the method I would recommend. It basically uses the DIR-615 firmware solely to perform VLAN tagging which is required for the PPPoE connection. The VLAN ID 500 is mapped to a physical port on the router, where your own custom router which does not operate with VLAN tagging will be plugged into. This causes the DIR-615 to tag/untag traffic as necessary in the background, creating a transparent VLAN-physical port bridge so that you are able to use your own hardware.
- Using a VLAN capable switch. This is the same as the method mentioned above (number 3) however it requires you to purchase a VLAN capable switch. The DIR-615 can already act like a VLAN capable switch so I don’t think this is necessary.
Guide : Using the TMnet Dlink DIR-615 G1 as a VLAN bridge
Before we begin, please ensure that you have prepared the following items :
- You have a standard wireless/non-wireless Internet router at hand which you intend to use. This means you have a router which has a RJ45 Ethernet jack as a WAN port and not a router which is combined with an ADSL/ADSL2 modem and has a RJ11 jack as a WAN port.
- You have read the Router Security guide and you have set the appropriate username and password combination for both administrator accounts on the DIR-615.
- You are using a Firmware 7.05 DIR-615 G1 router. I can’t guarantee this guide will work for future firmware versions at the moment. Firmware 7.05 is the current Unifi customer firmware (as of June 2010) and this guide was written for that particular model.
- You know your Unifi username/password combination. It’s best to have the installation slip with you (which contains all your account details and information).
- You are not a total novice at this. You should at least know how to set up a basic ADSL connection using a router or direct dialer and set up static IP addressing for your network card. This guide is not intended for complete novices. I’m not responsible if you screw up your current configuration and can’t go online. If you feel you cannot do this for some reason, get a friend who can to help you.
- You have backed up your current router configuration using the DIR-615′s main administrator account via the web interface. It is located in Maintenance -> Save and Restore. This is so that you can restore your router to its original state if anything unforeseen happens. Keep this *.bin file in a safe location.
- (optional) You have downloaded the Unifi forwarder in the Downloads section. This is really just optional in the event that something really bad happens and your DIR-615 gets totally screwed up. This is however, a safe procedure and does not involve anything out of the ordinary that would damage your router or void your warranty.
REMEMBER: In the event that you screw something up, you can just reset your router by holding a small needle/pin/pen tip to the RESET button behind it for a few seconds (until the power light changes colour to orange from green) to reset it. Do this while the router is running and don’t hold it for more than 20 seconds as you might put the router in emergency restore mode. 10 seconds should be enough for the power light to go from green to orange. You don’t even have to do this if you’ve only lost Internet connectivity, just use the backup configuration file you’ve created earlier and restore your original settings.
.. So lets begin ..
First of all, this is what your network is going to look like after you have set up the DIR-615 in VLAN bridging mode.

Once again, IPTV is not mentioned but it should still be accessible using the standard IPTV port on the DIR-615 (LAN port 4 — RED). Take note that the Fiberhome/ZTE VDSL is wired into the DIR-615′s WAN port. The DIR-615′s LAN port 3 is then wired into the WAN port of your own router. This configuration will setup the VLAN-physical port bridge on LAN port 3 of your DIR-615.
Method 1 : The Easy Method
Method 1 involves logging into the main administrator account and uploading a configuration file which I have pre-configured for you. I do not recommend using this method if you’re on the rev G2 with firmware 7.05b as I have heard from users that it corrupts the router version number even though it works fine. Please use method 2 instead if you’re on firmware 7.05b+.

- Ensure that your PC is connected directly to the DIR-615 using a LAN cable on LAN port 1 (IMPORTANT, DO NOT USE ANY OTHER LAN PORTS).
- Ensure that the WAN cable is NOT CONNECTED to your DIR-615 during this procedure.
- Log into the main administrator account (operator). If you’re still not sure what this is, read the Router Security guide.
- Download this file . This is the premade configuration file for the DIR-615 VLAN bridge (firmware 7.05). The default username/password combination for this config file is :
- In your web user interface for the DIR-615, navigate to Maintenance -> Save and Restore .
- Upload the firmware_705_dir615_bridge_config.bin which you have just downloaded and the router should now notify you that it is rebooting.
- After the DIR-615 ‘reboots’ and goes back to the web user interface, physically unplug its power cable and plug it back in. This is to ensure that the router has fully shutdown and restarted itself and must be done.
- Wire the Fiberhome (LAN port 1) into your DIR-615′s WAN port like usual. Then wire the LAN port 3 of your DIR-615 into your own router’s WAN port. Your DIR-615 should now be in VLAN bridge mode and you should be able to use your own router to connect through it. You may also try using a direct dialer on the DIR-615 LAN port 3 to test the new configuration. Only LAN port 3 on the DIR-615 has been mapped for VLAN bridging.
- Remember, this configuration file also resets your router username/password to the ones listed above. For security reasons, it is recommended you change them.
- Once this is all done, enter your Unifi username and password into the web user interface of your own router (not the DIR-615). The mode should be Dynamic PPPoE (if you’re on Unifi home packages) and it should be setup the same way you would setup your Streamyx/Jaring/Other ADSL connection. If you did everything properly, it will connect fine
Username : admin
Password : rizvanrpUsername : operator
Password : rizvanrp
Method 2 : The Manual (Advanced) Method
Method 2 is the manual method. It’s written for people who are not using firmware 7.05 (7.01, etc.) or are having issues with using the .bin file generated in method 1 such as the router not acccepting it/resetting to default settings upon upload. Some people have written to me saying their firmware 7.05 routers are not accepting the .bin savefile, so these steps will outline how to set your own configuration manually to match what is in the savefile.
- Ensure that your PC is connected directly to the DIR-615 using a LAN cable on LAN port 1 (IMPORTANT, DO NOT USE ANY OTHER LAN PORTS).
- Ensure that the WAN cable is NOT CONNECTED to your DIR-615 during this procedure.
- Log into the main administrator account (operator). If you’re still not sure what this is, read the Router Security guide.
- Navigate to Setup -> Internet Setup.
- Select Manual Internet Connection Setup.
- Edit the settings to match this image :
- Select Save Settings and Reboot the router.
- Once the reboot completes, re-login and navigate back to the Manual Internet Connection Setup page.
- Ensure the settings you have just set are still there.
- Select the ‘WAN Connection’ drop-down menu and select ‘WAN connection 3′.
- Edit the settings to match this image :
- Select Save Settings and Reboot the router.
- Once the reboot completes, re-login and navigate back to the Manual Internet Connection Setup page.
- Ensure the settings you have just set are still there.
- Navigate to Advanced -> Port Mapping.
- Set LAN Port 3 to ‘WAN connection 3′ :
- Save the settings, reboot and recheck the settings.
- If all the settings are still present, your router is now fully configured in VLAN bridge mode. Physically unplug the DIR-615′s power cable and plug it back in. This is to ensure that the router has fully shutdown and restarted itself and must be done.
- Wire the Fiberhome (LAN port 1) into your DIR-615′s WAN port like usual. Then wire the LAN port 3 of your DIR-615 into your own router’s WAN port. Your DIR-615 should now be in VLAN bridge mode and you should be able to use your own router to connect through it. You may also try using a direct dialer on the DIR-615 LAN port 3 to test the new configuration. Only LAN port 3 on the DIR-615 has been mapped for VLAN bridging.
- Once this is all done, enter your Unifi username and password into the web user interface of your own router (not the DIR-615). The mode should be Dynamic PPPoE (if you’re on Unifi home packages) and it should be setup the same way you would setup your Streamyx/Jaring/Other ADSL connection. If you did everything properly, it will connect fine
- It’s also best to disable the wifi capabilities of the DIR-615 as they wont be needed anymore (Setup -> Wireless Setup -> Multiple Wireless Network Name Setup).



