PPPoE - Multiple Connections

From SlackWiki
Jump to: navigation, search

How to setup multiple PPPoE connections

1) Install multiple network devices (ethernet cards).

(you can probably do this with one and use eth0:0, eth0:1, etcetera but, it's a bad idea).

2) Make note of each device's MAC address.

3) Make sure the correct interface is assigned to the correct network card.

Edit /etc/udev/rules.d/70-persistent-net.rules file so that the MAC address of each card matches the interface you want. You must do this so the correct pppoe connection connects to the correct modem.

4) Run pppoe-setup and set up the connection for connection #1.

5) mv /etc/ppp/pppoe.conf /etc/pppoe-connection1.conf

6) Run pppoe-setup and set up the connection for connection #2.

7) mv /etc/ppp/pppoe.conf /etc/pppoe-connection2.conf

8) Repeat steps 6 & 7 for each of the remaining DSL connections.

-setup is complete-


How to start the connections

1) Run pppoe-start /etc/ppp/pppoe-connection1.conf

2) Run pppoe-start /etc/ppp/pppoe-connection2.conf

3) Repeat step 2 for all remaining connections.

At this point, you should have ppp0, ppp1 and etc. ppp connections. Your routing table may be trashed at this point, you can clear it and use one as the default route by:

route del default
route add default gw ip_address_of_one_of_your_pppoe_connections

NOTE: The above will set ONE connection as the default, you must adjust your routing to suit your needs from this point on.

How to setup routing and/or weighted routing

Too be added...