From: vikrant <vikrant@saysnetsoft.com>
To: vikrant <vikrant@saysnetsoft.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Two interfaces - question
Date: Wed, 04 Jan 2006 18:27:11 +0530 [thread overview]
Message-ID: <43BBC627.5090008@saysnetsoft.com> (raw)
In-Reply-To: <43BBBFD5.1090609@saysnetsoft.com>
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/
next prev parent reply other threads:[~2006-01-04 12:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-01-04 19:35 ` Jesus M. Salvo Jr.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43BBC627.5090008@saysnetsoft.com \
--to=vikrant@saysnetsoft.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.