April 26, 2024, 05:26:52 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: problem with load balancing router  (Read 7048 times)

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« on: January 22, 2007, 05:06:20 AM »
Dear list,

I have some problem with 2 isp with a load balancing router linksys RV042.

please see the diagram below.

ADSL modem ---------------->  wan1 port of RV042

240nline -------->[eth0 to dial 240nline   linux-pc     eth1]-----------> wan2 port of RV042

now the router can detect the presence of the net both at wan1 and wan2 port.
but it can't get the net from the linux router. but when I attached the linux router with the
HUB then all the machine get the 24online connection. hence there is no problem with the
linux router machine.  I think the problem is with the router configuration. Could any one suggest anything to get the net from 240nline (wan2 port) ?
this is an urgent as I have already worked on it since last on week. please suggest
thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with load balancing router
« Reply #1 on: January 22, 2007, 09:33:09 PM »
Well, if router is having some configuration like mentioning gateway, dns server then u hv to mention it.
May be u can give me link to manual for that router, I can see and suggest something.

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« Reply #2 on: January 24, 2007, 04:24:08 AM »
Thanks for your response.

I have solved it :-)  I had smart backup enabled. it enables the primary wan and disables the secondary wan. my 24online was the secondary. when I made 24online  as primary I
see the "connected"  message :-)

thanks

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« Reply #3 on: January 24, 2007, 06:22:41 AM »
oh GOD!! still I hv problem. router can detect the connection but can't resolve any site using 24online.    Yes I have provided the dns and all related information in the router.

now first see the diagram below
=======================
240nline -------->[eth0 to dial 240nline linux-pc eth1]----------->[HUB]-----> client PCs with DHCP client

and every thing is working


now see the diagram below
=====================
240nline -------->[eth0 to dial 240nline linux-pc eth1]-----------> wan2 port of RV042

setting of wan2--> obtain ip automatically


router detects net at wan2 port but can't resolve the net.

 router is Linksys RV042

do u think the problem with isp ??

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with load balancing router
« Reply #4 on: January 24, 2007, 06:10:09 PM »
I see that you have enabled to obtain IP info on its own. Are you running dhcp server on Linux machine ?
Most probably you are not and hence I kept asking that have you provided correct gateway and dns info in the router for WAN 2 ie. 24online ?

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« Reply #5 on: January 25, 2007, 04:16:29 AM »
yes I am running DHCP on linux pc and that's why my clients can share the net . see below

240nline -------->[eth0 to dial 240nline linux-pc eth1]----------->[HUB]-----> client PCs with DHCP client

the DHCP server has the dns and gateway information.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with load balancing router
« Reply #6 on: January 25, 2007, 10:55:45 PM »
Hmm, Problem is not with ISP but some flaw or mistake in configuration.

Everthing seems to be fine.
Can  you surf the net on client PCs when you connect linux box alone to the router ?

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« Reply #7 on: January 29, 2007, 05:23:26 AM »
Nope and that is the problem. I have tested to ping yahoo.com when the router is connected with the linux box alone and ping was successful. but client pcs can surf the net :-(

240nline -------->[eth0 to dial 240nline linux-pc eth1]-----------> wan port of RV042 -->[HUB]--> client pcs

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with load balancing router
« Reply #8 on: January 29, 2007, 04:57:50 PM »
Now I am sure the problem is very small.
You have your client PCs to get Network info through DHCP, check in DHCP if they are getting right info or not ie. should get dns as router ip as well gateway too as router ip.

Offline joydeep

  • Linux Noob !
  • *
  • Posts: 21
problem with load balancing router
« Reply #9 on: January 31, 2007, 05:42:18 AM »
well I have already checked it and found no problem. I am giving u the details.

lan ip of linux box
-----------------------------
ip  ---> 192.168.0.2
mask ---> 255.255.255.0
gateway  ---->  10.10.0.1
Dns   ---> 10.10.0.1

router wan port configuration ( attached with linux box)
------------------------------------------------------------------------------------------
wan1 ip ------> 192.168.0.12
mask -----> 255.255.255.0
gateway -----> 192.168.0.2
DNS1   ---->  192.168.0.2
DNS2 ---->    10.10.0.1

LAN address of router 192.168.1.12

DHCP server of router is enable

clients PC configuration
------------------------------------------------
DHCP client enabled
Gateway ----->    192.168.1.12  ( ip of router)
DNS1   ---->  192.168.1.12
DNS2   ----->  192.168.0.2

please point out if there is any mistake.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with load balancing router
« Reply #10 on: February 02, 2007, 04:06:38 PM »
I think I should now explain thing things again more precisely.

Lets assume the following  :
You have two ISP connectivity :
ISP A is having IP aaa.aaa.aaa.111
Subnet : kkk.kkk.kkk.a
Gateway : aaa.aaa.aaa.aaa
DNS : aaa.aaa.aaa.222

ISP B (which is 24online) ishaving IP : bbb.bbb.bbb.111
Subnet : kkk.kkk.kkk.b
Gateway: bbb.bbb.bbb.bbb
DNS : bbb.bbb.bbb.222

Now Move further to your Linux Box, you have enabled NAT in Linux box and has connected ISP B to it. So in Linux box you have given following information to the NIC (eth0) which is connected to ISP : (as provided by ISP)
IP : bbb.bbb.bbb.111
Subnet : kkk.kkk.kkk.b
Gatway : bbb.bbb.bbb.bbb
DNS : bbb.bbb.bbb.222


Non LINUX box itself you have another NIC (eth1) which is connected to your LAN or your internal load balanced router.
You have to give following info on it :
IP : ccc.ccc.ccc.111
Subnet : kkk.kkk.kkk.c
Now leave dns and gateway blank for this NIC (eth1)

Now move to your linksys dual wan router :

WAN1 is your ISP A so you have to use following details for it in the router:
IP: aaa.aaa.aaa.111
Subnet: kkk.kkk.kkk.a
Gateway : aaa.aaa.aaa.aaa
DNS: aaa.aaa.aaa.222

Now WAN2 is your Linux box, hence have to use following:
IP: ccc.ccc.ccc.112 (Note : here IP is of same pool as of IP of eth1 of linux box)
Subnet: kkk.kkk.kkk.c
Gateway : ccc.ccc.ccc.111
DNS: bbb.bbb.bbb.222 (same as the DNS of ISP B)

Now for your clients :

As rest has to be done by the router, so set your client to use DHCP and thats it.

I have given configuration, try to tally it and mimic it and if you do it exactly then I hope won't disappoint you.


Regards!