managing two interfaces

2008-01-16 Thread Constantine Shulyupin
Hi,

I have a computer connected with two interfaces to same network. Each
one backups another.
When eth0 is down, eth1 have to work.
When eth1 is down, eth0 have to work.
The most sutable solution I've found is to monitor RUNNING status of
interfaces and change the routing table from my program.
Could you please suggests already implemented solution for the problem?

-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



RE: managing two interfaces

2008-01-16 Thread Gil Bahat
The linux bonding driver should allow for it - the active-backup mode
should work as you describe (with the exception that the two links
appear to be active at the same time, if it makes any difference).
It is also more versatile than that, allowing for more sophisticated
redundancy modes.

Take a look at
http://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Document
ation/networking/bonding.txt and see if it matches your needs.

Gil Bahat,
3rd year EECS student,
Tel Aviv University.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Constantine Shulyupin
Sent: Wednesday, January 16, 2008 4:12 PM
To: IGLU List
Subject: managing two interfaces

Hi,

I have a computer connected with two interfaces to same network. Each
one backups another.
When eth0 is down, eth1 have to work.
When eth1 is down, eth0 have to work.
The most sutable solution I've found is to monitor RUNNING status of
interfaces and change the routing table from my program.
Could you please suggests already implemented solution for the problem?

-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: managing two interfaces

2008-01-16 Thread Dotan Shavit
You just described teaming of your network interfaces.

#

On Wednesday 16 January 2008, Constantine Shulyupin wrote:
 Hi,

 I have a computer connected with two interfaces to same network. Each
 one backups another.
 When eth0 is down, eth1 have to work.
 When eth1 is down, eth0 have to work.
 The most sutable solution I've found is to monitor RUNNING status of
 interfaces and change the routing table from my program.
 Could you please suggests already implemented solution for the problem?



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: managing two interfaces

2008-01-16 Thread Marc Volovic
This is indeed teaming. In your case, teaming does not even require  
teaming on the other side of the cable pair since you do not actively  
intend to run the paired cables active/active.


The specific kernel module is bonding

Marc

On Jan 16, 2008, at 16:33 PM, Dotan Shavit wrote:


You just described teaming of your network interfaces.

#

On Wednesday 16 January 2008, Constantine Shulyupin wrote:

Hi,

I have a computer connected with two interfaces to same network. Each
one backups another.
When eth0 is down, eth1 have to work.
When eth1 is down, eth0 have to work.
The most sutable solution I've found is to monitor RUNNING status of
interfaces and change the routing table from my program.
Could you please suggests already implemented solution for the  
problem?




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: managing two interfaces

2008-01-16 Thread Constantine Shulyupin
Thank you for everybody. Bonding is indeed the best solution for interface
backup.
For my case I looking something more simpler. For my project the best
solution is to set IP of disconnected IF to 0.0.0.0 and restore on
connection.

On Jan 16, 2008 9:31 PM, Marc Volovic [EMAIL PROTECTED] wrote:
 This is indeed teaming. In your case, teaming does not even require
 teaming on the other side of the cable pair since you do not actively
 intend to run the paired cables active/active.

 The specific kernel module is bonding

 Marc


 On Jan 16, 2008, at 16:33 PM, Dotan Shavit wrote:

  You just described teaming of your network interfaces.
 
  #
 
  On Wednesday 16 January 2008, Constantine Shulyupin wrote:
  Hi,
 
  I have a computer connected with two interfaces to same network. Each
  one backups another.
  When eth0 is down, eth1 have to work.
  When eth1 is down, eth0 have to work.
  The most sutable solution I've found is to monitor RUNNING status of
  interfaces and change the routing table from my program.
  Could you please suggests already implemented solution for the
  problem?
 
 
 
  =

  To unsubscribe, send mail to [EMAIL PROTECTED] with
  the word unsubscribe in the message body, e.g., run the command
  echo unsubscribe | mail [EMAIL PROTECTED]
 





-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/