LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-06-2005, 07:37 AM   #1
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
dhcpd errors on non-dhcp NIC


My OpenBSD router is printing this on boot:

starting network daemons: dhcpd Jan 7 11:35:43 BSDrouter dhcpd: No subnet declaration for rl0 (XXX.XXX.XXX.XXX)
Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface rl0 is attached.

Those XX's are covers for my real external IP address. But dhcpd shouldn't be having anything to do with that NIC nor that IP address - as best as I know. After this error, dhcpd reports that it is exiting, thus not working for rl1 (the nic it SHOULD be serving on).

What have I forgotten?

My dhcpd.conf

********************************

shared-network LOCAL-NET {
option domain-name "MYdomain.com";
option domain-name-servers 203.12.160.35, 203.12.160.36;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;

range 192.168.1.32 192.168.1.127;
}
}


*********************************

Gsee
 
Old 01-06-2005, 07:42 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
what ip-adress did you give to rl1 ?

egag
 
Old 01-06-2005, 07:48 AM   #3
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
rl1 has a static IP of 192.168.1.1

Gsee
 
Old 01-06-2005, 11:09 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
that's oke...
look here:

http://www.linuxquestions.org/questi...icle&artid=276

i followed that,
if you want i can post my dhcpc.config file but i think the " LQ-answer " is very clear.

egag
 
Old 01-06-2005, 07:29 PM   #5
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
After following the guide on the LQ howto you sent me I've re designed my dhcpd.conf file however am still being faced with the same issue.

My new file:

subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.10 192.168.1.100;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name "MyDomain.com";
option domain-name-servers My.ISP.DNS.ONE, MY.ISP.DNS.TWO;
option routers 192.168.1.1;

host fileserver
{
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.1.2;
}

# host mailserver
#{
#hardware ethernet;
#fixed-address 192.168.1.3;
#}

#host MyDNS
#{
#hardware ethernet;
#fixed-address 192.168.1.4;
#}
}

subnet MY.EXTERNAL.STATIC.IP netmask MY.EXTERNAL.SUBNET.VALUE
{}


The very last section (subnet MY.EXTERN...) was added because I was still receiving the same error message as before - so I thought I'd add this to see if it would fix it. But alas, no. Thanks for the great link I didn't know about the static setting of IP's using the hostname and MAC address, this wil prove VERY useful. Thank you. Any more clues as to why I'm getting this error?

Gsee
 
Old 01-06-2005, 07:41 PM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
i'm not at my own pc. now, but i ill post my config-file tomorrow ( if still needed ....)
i know it looks much different though...

egag
 
Old 01-06-2005, 07:44 PM   #7
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
That'd be great. Could be anything in the way dhcpd is running? I mean as far as I can tell dhcpd shouldn't care less about rl0 as it's my external NIC. Is there somewhere I should be telling dhcpd which NIC or address to listen on?

Thanks for your help - I'm stumped.

Gsee
 
Old 01-07-2005, 04:08 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
btw.....how do you start dhcpd ?
maybe it should be " #dhcpd eth1 " ?

and if you need my config-file, i have it here....

egag
 
Old 01-07-2005, 05:05 PM   #9
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
I was just on my way in to let you guys know that I figured it out. I had a feeling I had to pass reference to the correct NIC when I started dhcpd. As you just said "-q rl1". Everything is fine now. Thanks for your help. Out of three howtos I went to in order to find out what was going wrong, none of them told me that I had to tell dhcpd which NIC, or more appropriately HOW to tell dhcpd. Anyway, all good now.

Thanks again,

gsee
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making dhcpd listen to unplugged NIC Steamrunner Linux - Networking 4 07-25-2005 04:53 AM
DHCPd errors in syslog APEX Linux - Networking 0 05-16-2004 02:51 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
Installed DHCP on RH7.2, no dhcpd.conf file??? AnthonyM Linux - Networking 8 07-30-2002 07:21 AM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration