loadbalance router

Crispin Wellington crispinw at signiq.com
Wed Aug 12 08:32:41 UTC 2015


How are you going to choose which link to route packets out of? Or put
another way, your setup has no default route. Your box can see 3 networks.
192.168.0/24, 192.168.1/24 and 192.168.2/24. It knows how to see them. But
it has no idea about every other network out on the internet. For example,
how will it find the route for 8.8.8.8? It doesn't know. If you setup a
default gateway to one of the DSLs router (like 'route add default gw
192.168.2.1') then it would send all internet destined packets to that
router. But you want to 'balance'. What exactly do you mean by that? That's
the difficult bit.

Crispin

On Wed, Aug 12, 2015 at 4:11 PM, Petter Adsen <petter at synth.no> wrote:

> 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."
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150812/6d8e5c70/attachment.html>


More information about the ubuntu-users mailing list