Multiple PPPoE Connections on Ubiquiti AirOS



Sometimes you need to push your available hardware and software a little bit beyond their original specifications. Because AirOS is built on Linux, you actually have a fair bit of flexibility in order to do whatever you like.

I had a need to be able to run multiple PPPoE accounts on the same antenna for two reasons. Firstly, when I need to separate VoIP traffic from Data traffic, and secondly when I have two users behind the same antenna. I then use VLANs to route the traffic independently.
Now, I do realize that it would be easier to put a Mikrotik or ER downstream from the antenna, but I prefer to use single device solutions where possible.

Step 1:

Set up your first PPPoE Client as you would normally, using the web interface.

Step 2:

Using PuTTY (or your favourite SSH Client) connect to the device.
Using vi (or nano) add the following two lines to /etc/persistent/rc.poststart substituting the correct username and password as 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 the following lines to /var/etc/persistent/options2 once again substituting the username for the correct 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
name "Username"
mtu 1492
mru 1492
note code

Step 4:

Run the following command to save the changes, and then reboot the antenna to bring up the new PPPoE interface

save
reboot

The new PPPoE Connection should now come up on each reboot.


Comments

Popular posts from this blog

DMASOFTLAB RADIUS MANAGER BILLING SYSTEM v 4.1 Finally Released

How To Configure Nano Station M2 As Access point