Monday, 5 October 2015

Multiple PPPoE Connections on Ubiquiti AirOS

09:40 Posted by Jurgens Krause , , , 3 comments
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.

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
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


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


  1. Can i get a youtube tutorial for this ? Please ?

  2. So from this I can run 2 PPPoE accounts on same device.
    This means if I have a 2 Mbps connection plan for 1 dial and get another dial 2 Mbps connection, It will load balance to 4 Mbps ?
    Am i right ?

    1. Not quite,

      It will allow you to use a single antenna for multiple users but manually routing one source network through the first pppoe and another through the second. Or perhaps you can separate your voice and data network.

      Unless you configure it manually, it will not load balance