* Two interfaces - question
@ 2006-01-04 10:03 Marcin Giedz
2006-01-04 11:16 ` vikrant
0 siblings, 1 reply; 7+ messages in thread
From: Marcin Giedz @ 2006-01-04 10:03 UTC (permalink / raw)
To: netfilter
Hello,
In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now only
one is working, the another one is not configured. However I'd like to have
something like dynamic routing: if one interfaces is down the second one if
up. If first returns up the second one goes down.
Does anyone know how can I do this?
Thx,
Marcin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 10:03 Two interfaces - question Marcin Giedz
@ 2006-01-04 11:16 ` vikrant
2006-01-04 11:36 ` Marcin Giedz
2006-01-04 19:35 ` Jesus M. Salvo Jr.
0 siblings, 2 replies; 7+ messages in thread
From: vikrant @ 2006-01-04 11:16 UTC (permalink / raw)
To: Marcin Giedz; +Cc: netfilter
Marcin Giedz wrote:
>Hello,
>
>In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now only
>one is working, the another one is not configured. However I'd like to have
>something like dynamic routing: if one interfaces is down the second one if
>
>
i am getting little confused when u say interface goes down please
explain .
what do u mean from interface does down whether interface card become
inactive or network cable get damage or ISP connection goes down please
clarify it .
>up. If first returns up the second one goes down.
>
>Does anyone know how can I do this?
>
>Thx,
>Marcin
>
>
>
>
>
Thanks
Vikrant
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 11:16 ` vikrant
@ 2006-01-04 11:36 ` Marcin Giedz
2006-01-04 12:02 ` Boryan Yotov
2006-01-04 12:30 ` vikrant
2006-01-04 19:35 ` Jesus M. Salvo Jr.
1 sibling, 2 replies; 7+ messages in thread
From: Marcin Giedz @ 2006-01-04 11:36 UTC (permalink / raw)
To: vikrant; +Cc: netfilter
Dnia środa, 4 stycznia 2006 12:16, vikrant napisał:
> Marcin Giedz wrote:
> >Hello,
> >
> >In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now
> > only one is working, the another one is not configured. However I'd like
> > to have something like dynamic routing: if one interfaces is down the
> > second one if
>
> i am getting little confused when u say interface goes down please
> explain .
OK - very spimle. Let's say that network cable is damage or someone has
disconnected cable from the card. If one cable is unplagged (eth0) the second
one (eth1) becames master.
> what do u mean from interface does down whether interface card become
> inactive or network cable get damage or ISP connection goes down please
> clarify it .
>
> >up. If first returns up the second one goes down.
> >
> >Does anyone know how can I do this?
> >
> >Thx,
> >Marcin
>
> Thanks
> Vikrant
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 11:36 ` Marcin Giedz
@ 2006-01-04 12:02 ` Boryan Yotov
2006-01-04 12:30 ` vikrant
1 sibling, 0 replies; 7+ messages in thread
From: Boryan Yotov @ 2006-01-04 12:02 UTC (permalink / raw)
To: netfilter
Marcin Giedz wrote:
> Dnia środa, 4 stycznia 2006 12:16, vikrant napisał:
>
>>Marcin Giedz wrote:
>>
>>>Hello,
>>>
>>>In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now
>>>only one is working, the another one is not configured. However I'd like
>>>to have something like dynamic routing: if one interfaces is down the
>>>second one if
>>
>>i am getting little confused when u say interface goes down please
>>explain .
>
> OK - very spimle. Let's say that network cable is damage or someone has
> disconnected cable from the card. If one cable is unplagged (eth0) the second
> one (eth1) becames master.
Check _mii-tool_ from Donald Becker and/or _ifplugd_ from Lennart
Poettering.
>
>
>
>>what do u mean from interface does down whether interface card become
>>inactive or network cable get damage or ISP connection goes down please
>>clarify it .
>>
>>
>>>up. If first returns up the second one goes down.
>>>
>>>Does anyone know how can I do this?
>>>
>>>Thx,
>>>Marcin
>>
>>Thanks
>>Vikrant
>
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 11:36 ` Marcin Giedz
2006-01-04 12:02 ` Boryan Yotov
@ 2006-01-04 12:30 ` vikrant
2006-01-04 12:57 ` vikrant
1 sibling, 1 reply; 7+ messages in thread
From: vikrant @ 2006-01-04 12:30 UTC (permalink / raw)
To: Marcin Giedz; +Cc: netfilter
Marcin Giedz wrote:
>Dnia środa, 4 stycznia 2006 12:16, vikrant napisał:
>
>
>>Marcin Giedz wrote:
>>
>>
>>>Hello,
>>>
>>>In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now
>>>only one is working, the another one is not configured. However I'd like
>>>to have something like dynamic routing: if one interfaces is down the
>>>second one if
>>>
>>>
>>i am getting little confused when u say interface goes down please
>>explain .
>>
>>
>OK - very spimle. Let's say that network cable is damage or someone has
>disconnected cable from the card. If one cable is unplagged (eth0) the second
>one (eth1) becames master.
>
>
>
>
>>what do u mean from interface does down whether interface card become
>>inactive or network cable get damage or ISP connection goes down please
>>clarify it .
>>
>>
>>
>>>up. If first returns up the second one goes down.
>>>
>>>Does anyone know how can I do this?
>>>
>>>Thx,
>>>Marcin
>>>
>>>
>>Thanks
>>Vikrant
>>
>>
>
>
>
>
I am considering that both the interfaces are using as external interface.
I don't know the right way to track the connectivity ,I think Routing
Protocol e.g BGP,RIP,IGP or OSPF are the solution for this kind of
problem.
But ,what i did to do this ,write a script that ping the ISP DNS and
set the status value (variable)according to packet loss % and then take
action according to the status value , ifdown eth0 -> ifup eth1 -> make
changes to iptables rules , and vice-versa.
add the script in crontab so that it runs after a certain time period
and perform the checking.
I am just a beginner so please do not consider it as the final solution.
Please know me if u find the right ans to ur ques.
and sorry for bad english.
Thanks
Vikrant
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 12:30 ` vikrant
@ 2006-01-04 12:57 ` vikrant
0 siblings, 0 replies; 7+ messages in thread
From: vikrant @ 2006-01-04 12:57 UTC (permalink / raw)
To: vikrant; +Cc: netfilter
vikrant wrote:
> Marcin Giedz wrote:
>
>> Dnia środa, 4 stycznia 2006 12:16, vikrant napisał:
>>
>>
>>> Marcin Giedz wrote:
>>>
>>>
>>>> Hello,
>>>>
>>>> In my INtel Blade server I have two ethernet interfaces: eth0,
>>>> eth1. Now
>>>> only one is working, the another one is not configured. However I'd
>>>> like
>>>> to have something like dynamic routing: if one interfaces is down the
>>>> second one if
>>>>
>>>
>>> i am getting little confused when u say interface goes down please
>>> explain .
>>>
>>
>> OK - very spimle. Let's say that network cable is damage or someone
>> has disconnected cable from the card. If one cable is unplagged
>> (eth0) the second one (eth1) becames master.
>>
>>
>>
>>
>>> what do u mean from interface does down whether interface card become
>>> inactive or network cable get damage or ISP connection goes down please
>>> clarify it .
>>>
>>>
>>>
>>>> up. If first returns up the second one goes down.
>>>>
>>>> Does anyone know how can I do this?
>>>>
>>>> Thx,
>>>> Marcin
>>>>
>>>
>>> Thanks
>>> Vikrant
>>>
>>
>>
>>
>>
>>
> I am considering that both the interfaces are using as external
> interface.
> I don't know the right way to track the connectivity ,I think Routing
> Protocol e.g BGP,RIP,IGP or OSPF are the solution for this kind of
> problem.
> But ,what i did to do this ,write a script that ping the ISP DNS and
> set the status value (variable)according to packet loss % and then
> take action according to the status value , ifdown eth0 -> ifup eth1
> -> make changes to iptables rules , and vice-versa.
> add the script in crontab so that it runs after a certain time period
> and perform the checking.
> I am just a beginner so please do not consider it as the final solution.
> Please know me if u find the right ans to ur ques.
> and sorry for bad english.
>
> Thanks
> Vikrant
>
>
>
If your problem is just limited to plugin or plugout of cable then u can
use ifplugd as Boryan yotov suggests but by this u can not check whether
ISP line in up or down.
link for ifplugd
http://www.stud.uni-hamburg.de/users/lennart/projects/ifplugd/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Two interfaces - question
2006-01-04 11:16 ` vikrant
2006-01-04 11:36 ` Marcin Giedz
@ 2006-01-04 19:35 ` Jesus M. Salvo Jr.
1 sibling, 0 replies; 7+ messages in thread
From: Jesus M. Salvo Jr. @ 2006-01-04 19:35 UTC (permalink / raw)
To: netfilter
On Wednesday 04 January 2006 22:16, vikrant wrote:
> Marcin Giedz wrote:
> >Hello,
> >
> >In my INtel Blade server I have two ethernet interfaces: eth0, eth1. Now
> > only one is working, the another one is not configured. However I'd like
> > to have something like dynamic routing: if one interfaces is down the
> > second one if
>
> i am getting little confused when u say interface goes down please
> explain .
> what do u mean from interface does down whether interface card become
> inactive or network cable get damage or ISP connection goes down please
> clarify it .
>
> >up. If first returns up the second one goes down.
> >
> >Does anyone know how can I do this?
> >
> >Thx,
> >Marcin
>
> Thanks
> Vikrant
What you are looking for is the bonding driver / interface.
Have a look in your filesystem for the file:
/usr/src/<kernel>/Documentation/networking/bonding.txt
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-01-04 19:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-04 10:03 Two interfaces - question Marcin Giedz
2006-01-04 11:16 ` vikrant
2006-01-04 11:36 ` Marcin Giedz
2006-01-04 12:02 ` Boryan Yotov
2006-01-04 12:30 ` vikrant
2006-01-04 12:57 ` vikrant
2006-01-04 19:35 ` Jesus M. Salvo Jr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox