You are not logged in.

#1 2005-07-19 20:17:44

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Eth0 and Wlan0 play nice?

Hi!

first of all, I do not have any problems with the network itself or somtheing, ust looking for some "nicer" way to do this..

but what is it I wanna do you may wonder??

Well, I have an ordinary ethernet card and a builtin wireless card (laptop), I primarly use wlan (both home and school) and is now using a customed wireless script (think it was iphitus who wrote it)  and it is working fine...thhe problem is that when I do not have an ethernet cable it takes a while for dhcp to search and decide that it has not found anything, and then find wlan and then continue booting..

My thinking was that it should be like this: "Look for WIFI connection, IF=YES, skip eth0 connection, IF=NO do ETH0 connection"..

Is this possible with Arch "standard" way? or must I use rc.local and build my own script? (and comment out the eth0 / wlan0 in rc.conf )???

all ideas are approciated.-..

/CyberTron


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#2 2005-07-19 21:43:07

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Eth0 and Wlan0 play nice?

disable eth0 on startup, background the network daemon... use ifplugd on the eth0 interface...

what you gain:
a) wireless will attempt to startup on boot
b) a daemon will start which polls the eth0 device to see if it has a connection - when it does, it loads things up

viola!

Offline

#3 2005-07-19 22:11:13

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Eth0 and Wlan0 play nice?

You can also change the amount of time that dhcpd searches for a connection. I don't bother doing what phrakture said and just load both because I reduced that number quite a bit (and it's the lazy man's way heh). It's the number (in seconds) that appears in /etc/conf.d/dhcpcd


I am a gated community.

Offline

#4 2005-07-19 23:16:26

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Eth0 and Wlan0 play nice?

Aye, ive got my dhcp down to about 3 seconds.

Offline

#5 2005-07-20 05:07:54

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: Eth0 and Wlan0 play nice?

A thanks for the tip big_smile will lower the settings of dhcp, then I will be happy big_smile

I will also look into ifplugd


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

Board footer

Powered by FluxBB