Networking Forums

Networking Forums > Computer Networking > Linux Networking > multi-uplink and link state judgement

Reply
Thread Tools Display Modes

multi-uplink and link state judgement

 
 
alfasun
Guest
Posts: n/a

 
      11-03-2003, 02:12 PM
Hi all,

I have three NICs, eth0, eth1, eth2 in a linux box, eth0 connects
a internal network with private IP addreses, while eth1 and eth2
connect to two ISPs. I set SNAT on both eth1 and eth2 for purpose of
NATing the internal private-ip hosts. Now I hope to realize this:
1. When the two uplinks are good, internal packets go from eth2 to internet.
2. When uplink of eth2 is down, internal packets can be automatically
switched to go from eth1 and
3. The system can automatically detect the link state of eth2's uplink.
When it finds it becomes normal from down, it will let the internal
packets automatically to use eth2's uplink again.

Can anybody give me a solution or any clues ?

Bow to you in advance.
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      11-03-2003, 11:12 PM
On 3 Nov 2003 07:12:05 -0800, alfasun <(E-Mail Removed)> wrote:
> I have three NICs, eth0, eth1, eth2 in a linux box, eth0 connects
> a internal network with private IP addreses, while eth1 and eth2
> connect to two ISPs. I set SNAT on both eth1 and eth2 for purpose of
> NATing the internal private-ip hosts. Now I hope to realize this:
> 1. When the two uplinks are good, internal packets go from eth2 to internet.
> 2. When uplink of eth2 is down, internal packets can be automatically
> switched to go from eth1 and
> 3. The system can automatically detect the link state of eth2's uplink.
> When it finds it becomes normal from down, it will let the internal
> packets automatically to use eth2's uplink again.
>
> Can anybody give me a solution or any clues ?


Not sure if you can simply set a higher metric for the backup default
route. But you may want to read the Adv-Routing HOWTO.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
alfasun
Guest
Posts: n/a

 
      11-04-2003, 02:42 PM
(E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
> On 3 Nov 2003 07:12:05 -0800, alfasun <(E-Mail Removed)> wrote:
> > I have three NICs, eth0, eth1, eth2 in a linux box, eth0 connects
> > a internal network with private IP addreses, while eth1 and eth2
> > connect to two ISPs. I set SNAT on both eth1 and eth2 for purpose of
> > NATing the internal private-ip hosts. Now I hope to realize this:
> > 1. When the two uplinks are good, internal packets go from eth2 to internet.
> > 2. When uplink of eth2 is down, internal packets can be automatically
> > switched to go from eth1 and
> > 3. The system can automatically detect the link state of eth2's uplink.
> > When it finds it becomes normal from down, it will let the internal
> > packets automatically to use eth2's uplink again.
> >
> > Can anybody give me a solution or any clues ?

>
> Not sure if you can simply set a higher metric for the backup default
> route. But you may want to read the Adv-Routing HOWTO.

Hi,
Thank you for your reply. Yes, I want to have a backup route to internet
and I hope when eth2's uplink line become normal from break, all packets
can automatically to switch to use this route again.
By mentioning "higher metric" do you mean to let me add to default routes
with diffrent metric? I tried to set eth2 route metric to 20 and
eth1 40. In the begining, when both route are good, I can see packets
coming into linux box from eth0 indeed go out from eth2 route. But
when the uplink of eth2 is off, hosts connected to eth0 can not get to
internet. The packets coming into linux box from eth0 won't chose eth1
route to go through to internet. I suppose the packets are dropped
somewhere in the kernel. My linux box is RH-8.0 and from internet
to access eth1's ip and eth2's ip got no any problems.
And I have read Adv-Routing HOWTO, not find any stuff mentioned to
satisfy the purpose of mine.
So would you pls to give me any other clues or a bit more detailed
instructions?
Thank you and bow.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uplink marvin Home Networking 5 08-31-2006 09:40 AM
Against my better judgement - BT Clive Broadband 13 08-20-2006 03:02 PM
Link State Routing in Ad hoc Mobile Networks khurramalik28 Wireless Internet 2 09-11-2004 04:19 PM
MN-500 Uplink-able Alex Broadband Hardware 1 05-19-2004 12:45 PM
uplink xrated Broadband Hardware 1 01-15-2004 06:00 PM



1 2 3 4 5 6 7 8 9 10 11