Monday 5 October 2015

Multiple PPPoE Connections on Ubiquiti AirOS

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

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.

4 comments:

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

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

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

      Delete
  3. e are aware of the load balance feature that uses the VOIP port as a second WAN but we only have 1 connection coming from ISP over a Rural Wireless link and I cant see any other way to do it other than two PPPoE connection on the smae interface. I know Microtek can do this on there routers but was hoping Ubiquiti had an option for this maybe in there Edge range.

    ReplyDelete