Linux being friendly to TM Unifi
Well, we just installed TM Unifi Biz 10. Smoking fast. Unfortunately TM choose to bundle it with retarded Dlink DIR-615 G2, which keeps crapping every other day under heavy network traffic. So just like any good engineer , it's time for an overly complicated solutions. With this setup, you can completely eliminate the Dlink router, and plug the LAN cable from FTTH equipment directly to your Linux box. Again, since we are using Unifi Biz, no idea whether home users with VIP package can use this same technique.
Our firewall is running Debian 6.0, so the settings given here might need some changes for non-Debian users.
0. Pre-requisite. Make sure you have "vlan" package installed (apt-get install vlan). Then add 8021q in your /etc/modules (echo 8021q >> /etc/modules ; modprobe 8021q). We need VLAN support in order to communicate with the FTTH box.
1. Add the following lines in /etc/network/interfaces
auto eth0.500 iface eth0.500 inet static address 192.168.0.2 netmask 255.255.255.0 vlan_raw_device eth0 auto unifi iface unifi inet ppp provider unifi
noipdefault defaultroute replacedefaultroute hide-password lcp-echo-interval 30 lcp-echo-failure 4 noauth persist mtu 1492 persist maxfail 0 #holdoff 20 plugin rp-pppoe.so eth0.500 user "toot@unifibiz"
"toot@unifibiz" * "replace_with_your_unifi_password"