LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-12-2005, 12:42 PM   #1
kelvinlo
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo 2005.0
Posts: 4

Rep: Reputation: 0
Routing for eth0 and wlan0 with static IPs on the same network.


I have a wired (eth0) connection and a wireless (wlan0) connection to my router (which in turn connects to the internet). The two connection are setup with different static IPs. I have no problems connecting to the internet with each respective connection. But it involves mannually setting the default gateway everytime I want to switch between interfaces. I was wondering whether it is possible to set it up such that it will look at both connections (in round-robin-style), without explicitly switching between one to another. Namely, if I'm currently connected to the internet through eth0, and I disconnect the ethernet cable, can it automatically switch to use wlan0 to go on the internet? Any help would be appreciated. Thanks.
 
Old 09-13-2005, 06:44 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
With Mandriva (which to my knowledge relies on IP links, and hotplug), I achieved this using standard Mandriva GUI tools:

Both eth0 and wlan0 are started on boot. When I connect the ethernet cable, the interface goes up, and route is auto-configured; when I disconnect the cable, route is flushed. Same with wlan0 when I plug/unplug the USB WiFi adapter.

I don't know all the details, but if you want me to look at some config files (eg: in /etc/sysconfig), please ask

Now, the really cool trick would be to bind eth0 and wlan0, so that when both are plugged you have double bandwidth Eg:
my laptop only has USB1.1, so max. 11Mb/s WiFi, and a 10baseT pcmcia card, so max. 10Mb/s. The combination of both could lead to 20Mb/s I guess

Yves.
 
Old 09-13-2005, 08:37 AM   #3
kelvinlo
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo 2005.0
Posts: 4

Original Poster
Rep: Reputation: 0
Umm.. too bad I'm using Gentoo. I wonder what mechanism they use to detect whether the ethernet cable is plugged, or the PCMCIA card is plugged. I tried playing around with /etc/pcmcia, but it doesn't seem to do the trick. It's unconceivable how no one thought of this for Gentoo... I keep thinking to myself that it must already be implemented somehow...
 
Old 10-15-2007, 04:54 PM   #4
Linux_Questions
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Rep: Reputation: 0
In Moonshine(Fc7), "NetworkManager" does this. It detects link status and runs the necessary scripts to switch networks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
How can i choose network card (eth0 or wlan0) to connect to internet? Klas Linux - Networking 4 05-07-2004 04:36 PM
Mandrake 9.2 can't get network running on eth0 or eth1 but can on wlan0 llindir Linux - Networking 2 03-20-2004 01:11 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration