LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-06-2007, 07:48 AM   #1
xplozia
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
2 wan and 1 lan


Hi.
I have 2 wan and 1 lan.
eth0=10.1.1.1
eth1=isp1 (ip fix)
eth2=isp2 (adsl ip fix)
I need eth2 backup for eth1, if eth1 is down I can use eth2, but in same time I need work both, eth1 and eth2.
I need that because i have a server with a aplication. This aplication work with 7900 port.
I redirect all eth1 traffic to local ip 10.1.1.100 (aplication). I need in same time redirect all traffic from eth2 (ppp0) to local ip 10.1.1.100:7900.
Thanks.
 
Old 02-06-2007, 05:42 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
This one should help you to setup a redundent router setup.
The other part for the application should be done using iptables dnat. Set one up for each outside nic.

Brian
 
Old 02-06-2007, 07:34 PM   #3
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
You could just bond them where you create a virtual ip by bonding eth0 and eth1 together. In this case you would redirect bond0 rather than eth0 or eth1. See the information at http://kbase.redhat.com/faq/FAQ_79_258.shtm .
 
Old 02-06-2007, 07:48 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Bonding will not work that way. The user has two different IPs. Bonding is more like trunking. You combine multiple nics but they have only one IP.

Check this link post#2 for bonding. http://www.linuxquestions.org/questi...29#post2518929
http://www.linuxquestions.org/questi...03#post2426603

Brian
 
  


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
Lan with three WAN... tusher Linux - Networking 3 06-28-2006 02:01 PM
LAN but no WAN BCarey Linux - Networking 4 05-07-2006 12:24 PM
2 routers WAN, LAN could you please tell me... microsmart Linux - Networking 5 08-06-2005 01:17 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
LAN/WAN problems CyberNet Linux - Networking 1 11-11-2002 10:30 PM


All times are GMT -5. The time now is 05:59 PM.

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