loadbalance router

Crispin Wellington crispinw at signiq.com
Wed Aug 12 08:35:11 UTC 2015


What does 'netstat -nr' show you?

Crispin

On Wed, Aug 12, 2015 at 4:32 PM, tux john <atux at null.net> wrote:

> Thanks for the quick response.
> Both links are up. in both of the DSL ROUTERs i have a pc attached to them
> to check their conectivity.
> The sysctl net.ipv4.ip_forward returns 1.
> Do i have to do anything for the NAT?
>
> *Sent:* Wednesday, August 12, 2015 at 11:11 AM
> *From:* "Petter Adsen" <petter at synth.no>
> *To:* ubuntu-users at lists.ubuntu.com
> *Subject:* Re: loadbalance router
> 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
>
> --
> 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/1aa9ee33/attachment.html>


More information about the ubuntu-users mailing list