loadbalance router

Petter Adsen petter at synth.no
Wed Aug 12 08:11:49 UTC 2015


On Wed, 12 Aug 2015 10:01:45 +0200
"tux john" <atux at null.net> wrote:

> hello everyone. i do have a pc with 3 NICs that i do run ubuntu server 12.04. i do have 2 DSL connections and i would like to make use of both of them per session. i have seen some solutions but i failed to make them work.
> my network is:
> DSL_1: 192.168.1.1/24 and it is attached to eth1 of the server
> DSL_2: 192.168.2.1/24 and it is attached to eth2 of the server
> LAN:192.168.0.0/24 and it is attached to eth0 of the server
> /etc/network/interfaces
> auto lo
> iface lo inet loopback
> auto eth0
> iface eth0 inet static
> address 192.168.0.1
> netmask 255.255.255.0
> #WAN1
> auto eth1
> iface eth1 inet static
> address 192.168.1.63
> netmask 255.255.255.0
> gateway 192.168.1.1
> dns-nameservers 8.8.8.8
> #WAN2
> auto eth2
> iface eth2 inet static
> address 192.168.2.63
> netmask 255.255.255.0
> gateway 192.168.2.1
> dns-nameservers 8.8.8.8
> 
> I have seen the following 2 links:
> -lstein.github.io/Net-ISP-Balance
> -wiki.ubuntuusers.de/Multiple_Uplink_Routing needs google translate
> 
> in both cases i could ping to the Internet only from DSL_1 and not from the other DSL_2.

Are you sure the link is up?

> Also if a pc is attached to the eth0 it cannot access anything on the
> Internet.

Try 'sysctl net.ipv4.ip_forward'. If it returns 0 then IP forwarding is
disabled, as it is by default. 'sudo sysctl -w net.ipv4.ip_forward=1'
will enable it. Add 'net.ipv4.ip_forward = 1' to /etc/sysctl.conf to
enable it after next reboot.

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150812/eb602c2e/attachment.sig>


More information about the ubuntu-users mailing list