Forums

Resolved
0 votes
Hey,

I am trying to set up a ClearOS Multi-WAN / Loadbalancer Gateway for our clients in my hostel.

Some of my questions might be RTFM, but I'm still trying to figure out which manual that might be.

Here is my set up:
I have 3 ADSL connections (2Mb, 1,5Mb and 1Mb - from 2 different ISPs) which I want to use all together to provide access to the internet to our clients via WiFi and a few stationary PCs.
The server I want to use has a total of 5 NICs, so I want to use 3 of them to connect to the ADSL modems, 1 to a switch to connect the access points to and the 5th to a switch to connect the PCs.

As I am in Bolivia, I have no access to the ADSL Modems, so I am stuck with their configuration all of them using the same IP range (192.168.0.x) and Subnet (255.255..255.0), I hope it will still be possilbe even with 3 NICs in the same IP range (?).

But that's not where my trouble starts.

Interfaces eth0, eth1 and eth3 are set up to be the "External" interfaces, I have to give them Static IP's because other wise they will not pick up an IP address from the modems. Other computers (Windows & Mac) do get the IP's from the modem via DHCP without a problem.

For the "Internal" interfaces I try to set them up with DHCP servers and fixed IPs but anything I try to connect won't pick up an IP.
I read that 2 DHCP servers on one network are not the best idea, but I guess if the network is created with that NIC and I connect a computer directly to that NIC it should get an IP?

Then, even if I assign a fixed IP to the computer connecting to the LAN interface, I don't get routed through to get out on the net. I can't even ping 8.8.8.8

Any hints on where I should start?

Thanks

Ben
Monday, December 24 2012, 11:57 PM
Share this post:
Responses (7)
  • Accepted Answer

    Thursday, February 07 2013, 04:48 PM - #Permalink
    Resolved
    -1 votes
    So I bribed my way into 2 of my ADSL routers now, so I think I should be able to set up my Multiwan gateway.

    I tried to figure out what the subnet part means, but am still kind of lost.
    http://en.wikipedia.org/wiki/Subnetwork didn't clear up things much more, so I'd love to get some help.

    So again here is the set up with it's limitations:
    WAN:
    3 ADSL connections:
    One modem has the fixed IP of 192.168.1.1, this one is also running it's DHCP Server and I can not access it.
    Two modems I can access now and give them the IP addresses I want and turn off the DHCP server.

    LAN:
    1 NIC to serve (currently 4) stationary PCs in 2 physical locations, so I will need to connect those PC's with at least 2 switches between Server and Clients.
    1 NIC to serve a WLAN, (currently) I can connect 2 Access points with a cable to the server (or a switch and then to the server), additional Access points would have to repeat the signal from the former two.

    EDIT
    It seems my ClearOS mixes up NICS:
    http://s7.postimage.org/gcxy7a88n/Nics_Mixed.jpg
    You see how I'm connected on 192.168.1.3 in the browser, but according to the Network Interfaces page the NIC with that IP is not connected.

    Any help would be highly appreciated.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 28 2012, 12:59 AM - #Permalink
    Resolved
    0 votes
    10.10.8.0/255.255.248.0 and 10.10.11.0/255.255.248.0 are in the same subnet. That subnet goes from 10.10.8.0-10.10.15.255 which means that those two interfaces will not work via multiwan. If this really is your only option with this ISP, you may want to set up virtualization and then load balance through two additional ClearOS VMs. That is the only way I see any kind of answer to this particular problem.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 27 2012, 09:51 PM - #Permalink
    Resolved
    0 votes
    There is no problem with a network mask of 255.255.255.0. The thing to make sure of is that the combination of network IP address and network mask do not overlap with any other interface. If in doubt use a subnet caclulator. It is odd also to have the Gateway IP address in the middle of the range.

    eth1 and eth2 are going to get confused but that is not your DHCP problem.

    I'm afraid I can't help any more tonight as I have to shut down until after the new year.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 27 2012, 09:33 PM - #Permalink
    Resolved
    0 votes
    There is a DHCP server in the modem on eth1.
    This is a physically different network then all the others.

    There is a DHCP server in the modem in the LAN behind eth2, but I don't get any connections disconnecting that netwok cable neither.
    (This is physically a different network then the ones connected to other NICs.)

    The Webconfig > Network > DHCP Server for eth4 came up with the following automatic configuration:
    Network Interface: eth4
    Network: 10.10.8.0
    Lease Time 24hours
    Gateway 10.10.10.1
    IP Range Start: 10.10.11.49
    IP Range End: 10.10.15.254
    DNS #1: 10.10.10.1

    I'm guessing this IP config comes up because I gave the NIC a Netmask of 255.255.248.0 as I understood your previous post that it needs to be something different from 255.255.255.0.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 27 2012, 08:46 PM - #Permalink
    Resolved
    0 votes
    The modem DHCP servers are on different physical LAN's (I hope) so should not interfere with the LAN DHCP servers. In Webconfig > Network >DHCP server, how have you configured the subnet for eth4?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 27 2012, 08:30 PM - #Permalink
    Resolved
    0 votes
    Thanks Nick for your answer.

    I might have to do a lot of reading still to get this going.
    Independent from being able or not to change the external settings - I hope I can get a contact at one of the ISP's get me the passwords to my modems...

    Where should I start reading for the Subnets?
    I set up eth4 (LAN) now to use
    IP Address 10.10.10.1
    Netmask 255.255.248.0

    Still my Macbook won't receive an IP from that NIC.


    [root@system ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:23:CD:B0:50:B5
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:18 Base address:0xa900

    eth1 Link encap:Ethernet HWaddr 00:23:CD:B0:59:84
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:65279 errors:0 dropped:0 overruns:0 frame:0
    TX packets:38175 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:7766647 (7.4 MiB) TX bytes:2215893 (2.1 MiB)
    Interrupt:19 Base address:0xe800

    eth2 Link encap:Ethernet HWaddr 00:16:76:36:91:1E
    inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:907131 errors:0 dropped:0 overruns:0 frame:0
    TX packets:633504 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:238195221 (227.1 MiB) TX bytes:113298314 (108.0 MiB)

    eth3 Link encap:Ethernet HWaddr B0:48:7A:80:AE:EE
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:2866 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5507 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:399979 (390.6 KiB) TX bytes:406847 (397.3 KiB)
    Interrupt:22 Base address:0x6a00

    eth4 Link encap:Ethernet HWaddr B0:48:7A:80:B0:84
    inet addr:10.10.10.1 Bcast:10.10.15.255 Mask:255.255.248.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:181474 errors:0 dropped:0 overruns:0 frame:0
    TX packets:13773 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:14725092 (14.0 MiB) TX bytes:1434128 (1.3 MiB)
    Interrupt:21 Base address:0x2b00

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:11704 errors:0 dropped:0 overruns:0 frame:0
    TX packets:11704 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1311681 (1.2 MiB) TX bytes:1311681 (1.2 MiB)

    tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)



    The server itself is online as in I can access the ClearOsMarketplace on the WebConfig or ping 8.8.8.8 or www.clearfoundation.com when connected via SSH.

    Still my Macbook won't receive an IP from the eth4 NIC nor would it route through any traffic in any direction.
    Same with the other NIC set up as LAN (eth2).
    If I manually set up the IP on the Macbook, I can connect to the WebConfig but not ping anything beyond it.

    If you could let me know where I could start reading so I can at least get a connection from one NIC to another NIC?
    What should I do to get the DHCP server running? Or do I need access to the modems first to turn off the DHCP servers on them and change their IP configuration?

    Additional Info below

    [root@system ~]# service dnsmasq status
    dnsmasq (pid 30002) is running...


    [root@system ~]# route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
    10.8.0.2 * 255.255.255.255 UH 0 0 0 tun1
    10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
    192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
    192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
    10.10.8.0 * 255.255.248.0 U 0 0 0 eth4
    default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1



    [root@system ~]# cat /etc/resolv.conf
    ; generated by /sbin/dhclient-script
    nameserver 8.8.8.8
    nameserver 200.87.100.10
    nameserver 200.119.220.8
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 26 2012, 04:52 PM - #Permalink
    Resolved
    0 votes
    If all your external IP's are in the same 192.168.0.0/24 subent you're going to have a problem. At a guess at that point only one of your WAN interfaces may work, if any.

    Also what are your LAN subnets? Are they different from your WAN subnet and from each other? They need to be.

    Before you can route anything to the internet from your LAN you need to be able to route from a ClearOS console to the internet.

    Check the console first by pinging 8.8.8.8 and www.google.com.
    The reply is currently minimized Show
Your Reply