LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2005, 07:11 PM   #1
Steamrunner
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Making dhcpd listen to unplugged NIC


Hey,

My Mandrake 10.1 box has 3 NIC's (utp, modem, coax). On the first NIC i use a crossed UTP to connect my laptop. When i connect the laptop before starting dhcpd, all works fine. But when dhcpd starts without the laptop it doesn't listen on that NIC.

I've experimented with plugging and unplugging the cable after starting dhcpd with the laptop on. This works fine too. So the problem just seems to be that the server doesn't start correctly.

So i'd like dhcpd to listen on eth0 when i start it.

Is there something i must add to dhcpd.conf or mayby the ifcfg-ethX file???

I have been googling for clues for a couple of hours now. Getting nowere. Hope one of you guys can help...

THX
 
Old 07-24-2005, 10:28 PM   #2
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
From my understanding and experience, the dhcpd server listens on the interfaces for which it has subnets defined.

If after restarting you dhcpd server you check your logs it may provide u with some info on which devices are being used etc
 
Old 07-24-2005, 11:01 PM   #3
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
in the command line you can do it via 'dhcpd -d -f eth0 &'

or to do that automatically, check your dhcpd startup scripts. in my CentOS box, i edit /etc/sysconfig/dhcpd and add the interface where i want dhcpd to listen to.
 
Old 07-25-2005, 04:39 AM   #4
Steamrunner
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I tried both born4linux idea's but no succes. Edditing INTERFACES in /etc/sysconfig/dhcpd seems to have no effect at all. If I use "dhcpd eth0" dhcpd only tries to start that one interface, but fails.

Dhcpd indead seems to start listening to interfaces for witch subnets are defined like DoubleOTeC mentioned. So the problem perhaps has notthing to do with dhcpd itself. The staticly defined IP's for my NIC only show when the NIC is plugged. This causes dhcpd not to find the correctly (i guess) defined subnet. Some experimenting shows that this is only a problem on my PCI NIC's not on the older ISA NIC's they seem to have an IP wether or not they are plugged.

Is this perhaps a problem with NIC configuration...
 
Old 07-25-2005, 04:53 AM   #5
Steamrunner
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
x
 
  


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
RedHat: dhcpd.conf - error: Not configured to listen on any interfaces! alinuxLQ Linux - Networking 8 11-05-2015 06:00 PM
dhcpd errors on non-dhcp NIC Gsee Linux - General 8 01-07-2005 05:05 PM
dhcpd - Not configured to listen on any interfaces. ritter Linux - Networking 1 07-05-2004 03:48 PM
dhcpd.conf and 2nd NIC problem KowCiller Linux - Networking 4 07-05-2003 08:01 PM
dual nic and dhcpd blanny Linux - Networking 1 02-04-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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