LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-30-2004, 09:19 PM   #1
h8trix
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
Dual WAN Config Problem


I have dual PCI ethernet cards as WAN going to a onboard card for the LAN. Now I have read how to use iproute2 and IPTABLES to setup dual WAN routing with load balancing and configure masquerading. One problem I have is that I can't really configure the dual wan as instructed because both WAN cards are on the same gateway/network mask. So it just says file already exists for most of the important commands.

When I get both cards working and do a iptables -L -v I see that one is always taking all the traffic and the other one is never touched, even at max load. If I disable one then the other one kicks in.

What I would like to have is for both cards to work in a way so that if I am doing something with one IP it will go through one card and then if I start doing something else simutaneously with another IP it will use the other card and effectively bounce between the cards to balance the traffic relatively equally between the two cards.

eth0 - LAN
eth1 - WAN 1
eth2 - WAN 2

Both eth1 and eth2 are linksys lne 100tx v5.1 (tulip driver) and the on board eth0 is a broadcom (tg3 driver)

iproute and iptables listings:

192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
xxx.xxx.208.0/22 dev eth1 proto kernel scope link src xxx.xxx.210.197
xxx.xxx.208.0/22 dev eth2 proto kernel scope link src xxx.xxx.208.253
127.0.0.0/8 dev lo scope link
default via xxx.xxx.208.1 dev eth1
default via xxx.xxx.208.1 dev eth1

---------------------------------------

Chain INPUT (policy ACCEPT 340K packets, 46M bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 62 packets, 10887 bytes)
pkts bytes target prot opt in out source destination
8165 8083K ACCEPT all -- eth1 eth0 anywhere anywhere state RELATED,ESTABLISHED
6730 846K ACCEPT all -- eth0 eth1 anywhere anywhere
334K 61M LOG all -- any any anywhere anywhere LOG level warning
115K 31M ACCEPT all -- eth2 eth0 anywhere anywhere state RELATED,ESTABLISHED
219K 30M ACCEPT all -- eth0 eth2 anywhere anywhere

Chain OUTPUT (policy ACCEPT 45265 packets, 4283K bytes)
pkts bytes target prot opt in out source destination

----------------------------------------

Yes my route table isn't modified according to the document (in fact this is what it gives my by default) but thats because I can't do the commands. If I use scope global and do next hope I can bounce the network and default routes between the two cards (according to the table), but that doesn't work properly either.

Suggestions/Ideas? (I wanna get this to work in linux, so no I don't want to buy a dual WAN router)
 
Old 10-03-2004, 02:55 AM   #2
h8trix
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
. bump .

Any help/ideas/suggestions would be great
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to create a Linux Dual WAN Router familyman Linux - Networking 9 06-26-2011 12:52 AM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
WAN : unable to ping to WAN ckl Linux - Networking 0 11-18-2004 01:56 AM
problem with FreeS/WAN IPsec cccc Linux - General 0 01-25-2004 10:59 AM
FreeS/WAN problem kirk21 Linux - Networking 0 08-08-2003 07:26 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration