LinuxQuestions.org
Help answer threads with 0 replies.
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-07-2010, 06:35 PM   #1
ash321
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
DHCP Configuration Error Ubuntu


Hello,

I am new to Linux and am try to set up this server but i keep getting an error when restarting the server. I found the syslog file and it is telling me

Code:
Jul  7 19:25:54 bobby-desktop dhcpd: No subnet declaration for eth0 (169.254.5.172).
Jul  7 19:25:54 bobby-desktop dhcpd: ** Ignoring requests on eth0.  If this is not what
Jul  7 19:25:54 bobby-desktop dhcpd:    you want, please write a subnet declaration
Jul  7 19:25:54 bobby-desktop dhcpd:    in your dhcpd.conf file for the network segment
Jul  7 19:25:54 bobby-desktop dhcpd:    to which interface eth0 is attached. **
Jul  7 19:25:54 bobby-desktop dhcpd: 
Jul  7 19:25:54 bobby-desktop dhcpd: 
Jul  7 19:25:54 bobby-desktop dhcpd: Not configured to listen on any interfaces!
My config file is
Code:
#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.20 192.168.0.250;
    option domain-name "example.com";
    option domain-name-servers 192.168.0.1;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
#    next-server 192.168.0.1;
#    get-lease-hostnames true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }
}
if i change subnet 192.168.0.0 netmask 255.255.255.0 to subnet 169.254.5.17 netmask 255.255.255.0 then i get a different error about bad combinations. I am not quite sure where to go next any help would be great appreciated. Here is the tutorial i was trying to follow http://www.ubuntugeek.com/how-to-ins...tu-server.html.

Originally i was in the correct file until reading the heading about the ltsp file that would be used instead so i switched to editing that file instead
 
Old 07-07-2010, 11:04 PM   #2
kapsikum
Member
 
Registered: Mar 2005
Location: INDIA
Posts: 79

Rep: Reputation: 16
It Appears that your eth0 is having the ip 169.254.5.172 then you have to specify the subnet in that range i guess i.e
169.254.5.0/24. If these changes do not straddles with your strategy may be this change would help:

#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 169.254.5.0 netmask 255.255.255.0 {
range 169.254.5.2 169.254.5.171;
option domain-name "example.com";
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1; # Caution: you have to see this whats now going to be your default route
# next-server 192.168.0.1;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}


try starting your dhcpd on eth0 with this file again and post the error, if any
 
Old 07-08-2010, 10:13 AM   #3
ash321
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much! I got the dhcp server to work now. Then i plugged in a thin client and the first time it got to loading images then failed. But now it says that there is an ARP timeout and then the PXE boot fails. Any chance you can help me out again? If not ill mark it as solved and try to figure out the thanked thing on the left side. I was searching google for solutions and found this http://ubuntuforums.org/showthread.php?t=1441802 but it didnt fixed the error. Like i said im new to both networking and linux

Current config file
Code:
#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 169.254.5.0 netmask 255.255.255.0 {
range 169.254.5.2 169.254.5.171;
option domain-name "example.com";
option domain-name-servers 192.168.0.1; 
option broadcast-address 192.168.0.255;
option routers 192.168.0.1; # Caution: you have to see this whats now going to be your default route
next-server 169.254.5.172;
allow booting;
allow bootp;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "pxelinux.0";
}
}

Last edited by ash321; 07-08-2010 at 10:14 AM. Reason: added current config file
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP configuration. gardenair Linux - Newbie 4 04-22-2010 02:03 AM
DHCP Configuration omnivir Linux - Networking 1 01-14-2010 08:39 PM
DHCP IP Configuration !!!! ajeetraina Linux - Newbie 3 02-05-2008 07:56 AM
Dhcp failed with error (Pump Told us : no dhcp reply recived.) alok.rhct Linux - Networking 3 03-24-2007 07:28 AM

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

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