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 03-06-2006, 11:59 AM   #1
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Rep: Reputation: 15
dhcpcd trys to get ip of nonconnected NIC?


Well gusy I love my slack install and it works great when connected to my ethernet while at home. However whenever I am not connected and try to boot DHCPCD echos the ip of my ethernet NIC and I think it is trying to get a IP from a dhcp server.

Is there anyway to tell it not to start unless eth0 is connected?

Thanks
 
Old 03-06-2006, 01:35 PM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
edit your /etc/rc.d/rc.inet1.conf and look at /etc/dhcpc/dhcpcd.exe (that's a shell script)
 
Old 03-06-2006, 01:36 PM   #3
supervince
LQ Newbie
 
Registered: Feb 2006
Location: US
Distribution: Slackware, Fedora, and OpenBSD
Posts: 3

Rep: Reputation: 0
If this is a problem often, just set your NIC to use a static IP, and then you could write a script run by rc.local to bring your nic up, check it's media state, and then dhcp.

Or if it's not being used as a server, just run the dhcpcd yourself when you log in.
 
Old 03-06-2006, 04:02 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I had the same problem. Look at my post here, and the solution was here.

You'll have to download/install/set executable on a few things, but it works GREAT!
 
Old 03-06-2006, 06:46 PM   #5
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cwwilson721
I had the same problem. Look at my post here, and the solution was here.

You'll have to download/install/set executable on a few things, but it works GREAT!
Great I installed the scripts and it seems to be working great, now do I have to edit anything in ifplugd.sh or the other .sh?

What I did was make backup of the rc.inet1, rc.inet1.conf, rc.wireless, and rc.wireless.conf then placed them in a folder. Next I downloaded the new rc scripts installed them. Next I uncommented SCRIPT[0] for iface eth0 and added the SCRIPT[1]line for eth1. Finally did chmod a+x for the new rc files and .sh files.

Does that sound like I did it right?
 
Old 03-06-2006, 07:09 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Yep

Reboot and see if it works. If not, edit rc.inet1.conf and rc.wireless.conf files
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Browser trys to download php files Sp@rticus Linux - Software 17 01-31-2006 04:28 AM
NIC - dhcpcd trouble on startup tw001_tw Slackware 7 07-30-2004 06:01 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM
irc broken; trys to connect to localhost.. tux_rox Linux - Software 2 06-23-2003 09:19 PM

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

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