LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2010, 05:40 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
How tho configure my system to start wlan0 instead of eth0?


Hello all,

I'm running Slackware-13.1 on my laptop. Connection to my network is via wlan0, a cable in most cases not pluged in.

When starting the system the first attempt to configure the network is via eth0, which ends with dhcpcd timing out since there is no cable pluged in. Afterwards wlan0 is set up properly.

I have installed ifplugd, which is a daemon who connects to ethernet only if a cable is connected. With Gentoo this works out of the box. With Slackware ifplugd is started after rc.inet1 (probably). So the the system still tries to connect via ethernet before connecting to the wireless network.

I have also installed wicd.

How can I manage that wlan0 is prefered over eth0?

I noticed that neither wicd nor ifplugd belong to the default full installation of Slackware and therefore assume, there must be a solution which meets my requirements without even one of both programs.

The laptop is only used at home. Wireless connection is normaly used. I need eth0 only in a case of emergency.

Thanks in advance for any suggestions.

Markus
 
Old 11-29-2010, 07:40 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
If you don't want eth0 starting, you can just change
Code:
USE_DHCP[0]="YES"
to
Code:
USE_DHCP[0]=""
in /etc/rc.d/rc.inet1.conf
 
Old 11-30-2010, 02:11 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Hello manwichmakesameal,

thanks for your answer. I had a similar idea already but your solution disables eth0 also if a cable is connected.

I've searched by myself and found the following solution. I disabled the entry for ifplugd to be started in rc.local and inserted it in rc.M instead of the section where rc.inet1 is started. Here the section in rc.M
Code:
...
# ifplugd starten bevor rc.inet1 startet
if [ -x /etc/rc.d/rc.ifplugd ]; then
  # Start ifplugd
  echo "Starting ifplugd:  /etc/rc.d/rc.ifplugd start"
  /etc/rc.d/rc.ifplugd start
fi

# Initialize the networking hardware.
#if [ -x /etc/rc.d/rc.inet1 ]; then
#  . /etc/rc.d/rc.inet1
#fi]
...
It seems that it works properly.

If someone has a better idea or additional information about this issue, please post it.

Thanks in advance.

Markus
 
  


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
how to forward wlan0 to eth0? patcito Linux - Networking 2 07-03-2009 05:26 AM
dhcp wlan0 before eth0? datadriven Slackware 2 01-22-2009 12:26 PM
Unable to configure the network card because the kernel device (eth0, wlan0) is not graham0008 Linux - Newbie 22 09-28-2008 08:46 PM
Remapping wlan0 to eth0 Berhanie Linux - Networking 1 02-17-2005 07:59 AM
How tho configure ports on firewall for server.... seedsca Linux - Networking 2 03-26-2004 12:00 AM

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

All times are GMT -5. The time now is 09:08 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