Networking Forums

Networking Forums > Computer Networking > Linux Networking > Detect and switch ethernet interfaces

Reply
Thread Tools Display Modes

Detect and switch ethernet interfaces

 
 
Cartque
Guest
Posts: n/a

 
      02-26-2008, 03:09 PM
Hi Everyone,

I am trying to configure my network interfaces so that my linux box is
always connected to the network.

On eth0, I have a direct connection to the internet. Similarly I can
connect to the Internet using dial up (on ppp0).

The situation is such that the ppp0 is the default method of
connecting to the internet, and the ethernet is a backup option

How do I configure the routing information so that, if I the
connection on the dial up is dropped, the network change is detected
and eth0 is used to connect.

Regards

Cartque
 
Reply With Quote
 
 
 
 
Bob Hauck
Guest
Posts: n/a

 
      02-27-2008, 12:11 PM
On Tue, 26 Feb 2008 08:09:31 -0800 (PST), Cartque <(E-Mail Removed)> wrote:

> How do I configure the routing information so that, if I the
> connection on the dial up is dropped, the network change is detected
> and eth0 is used to connect.


Put a higher metric on the ethernet.


--
-| Bob Hauck
-| http://www.haucks.org/
 
Reply With Quote
 
Cartque
Guest
Posts: n/a

 
      03-03-2008, 02:06 PM
On Feb 27, 6:11*pm, Bob Hauck <postmas...@localhost.localdomain>
wrote:
> On Tue, 26 Feb 2008 08:09:31 -0800 (PST), Cartque <cart...@gmail.com> wrote:
> > How do I configure the routing information so that, if I the
> > connection on the dial up is dropped, the network change is detected
> > and eth0 is used to connect.

>
> Put a higher metric on the ethernet.
>
> --
> *-| Bob Hauck
> *-|http://www.haucks.org/


Thanks Bob.

I was able to put a higher metric using the "route" utility. The
ipconfig did not support the metric.
Added ifplugd from http://0pointer.de/lennart/projects/ifplugd/ to
down/up the interface and it works great now.

Regards,
Cartque
 
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
interfaces on network switch Mark Linux Networking 13 12-17-2009 10:11 PM
Bridging non Ethernet interfaces ? ChapiChapo Linux Networking 0 01-17-2008 12:31 PM
Multiple Virtual Ethernet Interfaces netfiber@gmail.com Linux Networking 0 02-02-2007 12:05 AM
Virtual Ethernet Interfaces Troy C Linux Networking 6 10-10-2004 10:52 PM
Several ethernet interfaces + encapsulation over IP Tim C Linux Networking 0 12-17-2003 08:51 PM



1 2 3 4 5 6 7 8 9 10 11