Monday, October 5, 2015

Multiple Pppoe Connections On Ubiquiti Airos

Sometimes y'all require to force your available hardware as well as software a piddling chip beyond their master specifications. Because AirOS is built on Linux, y'all truly accept a fair chip of flexibility inwards companionship to produce any y'all like.

I had a require to live on able to run multiple PPPoE accounts on the same antenna for 2 reasons. Firstly, when I require to split VoIP traffic from Data traffic, as well as secondly when I accept 2 users behind the same antenna. I as well as then piece of employment VLANs to road the traffic independently.
Now, I produce realize that it would live on easier to position a Mikrotik or ER downstream from the antenna, only I prefer to piece of employment unmarried device solutions where possible.

Step 1:

Set upward your outset PPPoE Client every bit y'all would normally, using the spider web interface.

Step 2:

Using PuTTY (or your favourite SSH Client) connect to the device.
Using vi (or nano) add together the next 2 lines to /etc/persistent/rc.poststart substituting the right username as well as password every bit required.

echo '"Username" * "Password" *' >> /etc/ppp/pap-secrets
echo '"Username" * "Password" *' >> /etc/ppp/chap-secrets
pppd ath0 file /var/etc/persistent/options2 &

Step 3:

add together the next lines to /var/etc/persistent/options2 once over again substituting the username for the right one.

plugin rp-pppoe.so
noauth
noipdefault
nodefaultroute
usepeerdns
lcp-echo-failure 5
lcp-echo-interval 5
lcp-max-configure 10
lcp-max-failure 10
lcp-max-terminate 3
lcp-restart 3
maxfail 0
holdoff 1
persist
cite "Username"
mtu 1492
mru 1492
authorities notation code

Step 4:

Run the next ascendency to relieve the changes, as well as and then reboot the antenna to convey upward the novel PPPoE interface

save
reboot

The novel PPPoE Connection should immediately come upward up on each reboot.