LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-11-2008, 02:34 PM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
Wired versus wireless internet


I hesitate to raise this as a new post as I am sure I have seen something on this before (from Alien Bob?) but I could not find it by searching the forums.

Slackware 12.1, kernel 2.6.24.5-smp, KDE 3.5.9 usually running.

When my laptop boots up and I am at home I have both eth0 and wlan0 up and running. My question is : how does the system decide which interface to use for any given access request? I ask because it often (stupidly) seems to use wlan0 which is slower than eth0. I can of course manually stop wlan0 before doing some netowork-intensive task, but is there a way to tell the system that it should use eth0 first and only use wlan0 if eth0 seems busy / unavailable ?

Again apologies if this has been answered before.

Bogus Zaba
 
Old 11-12-2008, 07:49 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
This sounds useful under those circumstances:
http://www.slackware.com/~alien/slackbuilds/ifplugd/
I haven't tried it myself, not got round to setting up wireless on my laptop yet.
 
Old 11-12-2008, 08:17 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by brianL View Post
This sounds useful under those circumstances:
http://www.slackware.com/~alien/slackbuilds/ifplugd/
I haven't tried it myself, not got round to setting up wireless on my laptop yet.
That appears to be something that decides which IF to bring up. My read of the OP is that he wants to know how traffic is routed when there are two active connections.

I have not researched this, but here is a start:
http://www.google.com/search?hl=en&r...ux&btnG=Search
 
Old 11-12-2008, 08:36 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Thumbs down

Routing traffic over two different connections can be a bit complicated, but it is possible.
Normally your routing table (try route -n and see your default gateway) decides which interface is used.
You can select interfaces with ip route & ip rule commands.

On this page I wrote about my experiences.
 
Old 11-16-2008, 02:51 PM   #5
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
OK I found what I thought existed - Two of Alien Bob's scripts described here :
http://www.slackware.com/~alien/rc_scripts/ifcfg/
One of these uses ifplugd referred to above by BrianL (thanks). In fact following BrianL's post, I got hold of ifplugd and I find that this alone almost does solve the problem, because ifplugd very quickly detects the plugged interface if it is there allowing me to configure the wireless interface (manually with a rc.inet1 wlan0_start command) only if I feel the need. Otherwise I rely on ifplugd to start and stop eth0 - the fast option.

But Alien Bob's second script - which uses ifmetric provides some additional functionality. He says in the README :
Quote:
ifmetric.sh can be used to give higher or lower priority to one of your
network interfaces
. Have not tried this additional sophistication yet but this certainly sounds like what I was looking for (and had found some time ago, but lost due to inefficient bookmarking...)
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
no internet wireless or wired a511475 Fedora - Installation 1 07-08-2008 08:10 PM
Unable to connect to internet via wireless OR wired connection frznchckn Linux - Wireless Networking 5 06-19-2008 01:12 PM
wired & wireless internet together machines Linux - Newbie 9 04-03-2008 07:34 AM
Manage wired and wireless (WPA) internet connections rangalo Debian 6 04-23-2007 07:08 AM
wired and wireless internet connections. levicc00123 Linux - Laptop and Netbook 1 01-14-2005 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration