LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-05-2004, 03:34 PM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
dhcpcd at boot


hi,

my system has realtek network card built in the kernel and intel pro/wireless as a module. right now, i only use intel wireless, so i want to run dhcpcd ethN at boot, where N (0 or 1) corresponds to the intel wireless interface. i plan to do that by adding "dhcpcd eth1" to /etc/rc.d/rc.local.

here are my questions:

1) i use "dhcpcd eth1," assuming that it will be the case. is it possible it is assigned eth0 and the realtek card is assigned eth1? does that fact that the realtek support is built in the kernel and intel wireless is a module will always make realtek: eth0 and intel: eth1?

1) the ipw2100 module for the intel wireless card must have been loaded so that eth1 exists before /etc/rc.d/rc.local is run. in what file should i put "dhcpcd eth1" so that it is run after the module has been loaded (i have hotplug run at boot time)?

thanks.
 
Old 07-05-2004, 06:27 PM   #2
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
If you are running the later Slackwares (read that as 9.1 or 10.0) then look at the file, /etc/rc.d/rc.inet1.conf. You could, in that file, specify which, if any, NICs you want to configure via dhcpcd.

Let's say you do not want eth0 (your 'wired' NIC) to come up, then in the 'USE_DHCP[ n =""' and those that you want to come up via dhcpcd sould be 'USE_DHCP[n]="yes"

Note that you could also use this to configure any of your NICs for a static ip.
 
Old 07-06-2004, 02:25 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
i guess that's easy enough.
however, i'm not sure if this is going to cause problems, but sometimes, like right now, ifconfig and iwconfig only see "lo" and "eth0" (wireless). usually it there are eth0 (wired) and eth1 (wireless). anyway i'll try and say yes for eth0 and eth1 (even though sometimes eth1 doesn't exist) and see what happens.
thanks.
 
Old 07-06-2004, 09:37 AM   #4
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
Should not be any problem saying yes to the eth? that sometime does not exist. On my laptop, I have "yes" to dhcp on both, the wired and the wireless NICs. When the wireless PCMCIA card is not plugged in, I get no error or compaints and have just the one NIC reported.

Some reason or another, the wireless card always comes up as eth0 and the hardwired NIC comes up as eth1, when both are running. When I pull the wireless out, then eth0 shows up as the wired nic. Since this never bothered me, I never investigated as to why the PCMCIA wireless always shows up before the hard-wired NIC.

If yu want to use the wireless NIC, only, you could put your wired NIC driver module in the /etc/hotplug/blacklist, which will prevent it from loading at bootup.

My two cents.....
 
Old 07-06-2004, 11:49 AM   #5
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
i mostly use the wireless interface, so blacklisting the wired one is perfect. but you also remind me of the ability to blacklist any module to prevent hotplug from loading it, saving boot time .
thanks.
 
  


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
running dhcpcd on boot gendreau Linux - Newbie 2 04-01-2012 03:08 PM
Boot Delay DHCPCD Kelman Linux - Wireless Networking 5 10-13-2005 04:23 PM
Boot problems... dhcpcd? danthehat Linux - Software 0 08-03-2005 02:10 PM
How do I start dhcpcd on boot? hello321_1999 Linux - Networking 7 11-26-2004 12:05 PM
dhcpcd being started twice on boot Wynd Slackware 7 11-13-2004 12:47 PM

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

All times are GMT -5. The time now is 11:57 PM.

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