LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2011, 07:24 AM   #1
venkatmvc
LQ Newbie
 
Registered: Jul 2011
Location: Bangalore
Distribution: Fedora12
Posts: 1

Rep: Reputation: Disabled
Dhcp server does not start


Hai Everbody,

I have installed Fedora12(Constantine) Kernel 2.6.32.26-175.fc12.x86_64
dhcp does not start my configuration file is as follows.

default-lease-time 21600;
max-lease-time 21600;
ddns-update-style none;
allow booting;
allow bootp;

option subnet-mask 255.255.255.0;
option broadcast-address 172.31.100.255;
option routers 172.31.100.254;
option domain-name-servers 172.31.100.254;
next-server 172.31.100.254;
option domain-name "ltsp";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-221 code 221 = text;

shared-network WORKSTATIONS {
subnet 172.31.100.0 netmask 255.255.255.0 {
range dynamic-bootp 172.31.100.101 172.31.100.253;
use-host-decl-names on;
option log-servers 172.31.100.254;

# trick from Peter Rundle <peter.rundle@au.interpath.net>
# newer PPC Macs
if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
{
filename "yaboot";
option vendor-class-identifier "AAPLBSDPC";
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
}
# really old ppc iMacs
elsif substring (option option-221, 0, 5) = "Apple"
{
filename "yaboot";
option vendor-class-identifier "AAPLBSDPC";
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
}
# Etherboot ELF (only 5.4), should work with Coreboot
elsif substring (option vendor-class-identifier, 0, 13) = "Etherboot-5.4"
{
filename "/ltsp/i386/elf.ltsp";
}
# Etherboot NBI (older clients)
elsif substring (option vendor-class-identifier, 0, 9) = "Etherboot"
{
filename "/ltsp/i386/wraplinux-nbi.ltsp";
}
# PXE
elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient"
{
# NOTE: kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
filename "/ltsp/i386/pxelinux.0";
}
# if all else fails (likely BOOTP), default to an NBI image
else
{
filename "/ltsp/i386/wraplinux-nbi.ltsp";
}

# PPC Apple MAC prefixes https://fedoraproject.org/wiki/Warre...leMACAddresses
# initrd did dhcp again with vendor-client-identifier "nash" so we need another way to set root-path
# This is most likely an incomplete list. You may need to add your own if you have a PPC not covered.
# 00:03:93
# 00:05:02
# 00:0A:27
if binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-3-93" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-5-2" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-27" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-95" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-d-93" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-11-24" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-14-51" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-30-65" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-50-E4"
{
option root-path "172.31.100.254:/opt/ltsp/ppc";
#option root-path "nbd:172.31.100.254:2001:squashfs:ro";
} else {
option root-path "172.31.100.254:/opt/ltsp/i386";
#option root-path "nbd:172.31.100.254:2000:squashfs:ro";
}
}
}



once i run service dhcpd restart i Get the following

Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for ltspbr0 (172.31.100.254).
** Ignoring requests on ltspbr0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface ltspbr0 is attached. **


No subnet declaration for eth1 (192.168.0.254).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **


No subnet declaration for eth0 (172.31.100.254).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **


Not configured to listen on any interfaces!

This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the Red Hat Bugzilla site:
http://bugzilla.redhat.com

exiting.
Pls suggest corrections on this

Thanking you all in advance.

regards,
venkat
 
Old 07-29-2011, 07:32 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
please add code tags to your post so it is correctly indented.
 
Old 08-02-2011, 07:55 PM   #3
Bacon
LQ Newbie
 
Registered: Aug 2011
Location: WA
Distribution: Fedora, Ubuntu, Debian
Posts: 6

Rep: Reputation: Disabled
Smile

In /etc/default there should be a file pertaining to your DHCP server. For example, "isc-dhcp-server".

Below is the contents of isc-dhcp-server, change eth0 to whichever interface you have the dhcp server giving out addresses on.

Code:
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#	Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
I'm running from memory and I believe this was the file you need to modify to rid yourself of the "Not configured to listen on any interfaces" message.
 
  


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
Unable to start DHCP server divyashree Linux - Server 5 05-25-2013 09:07 AM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
Unable to start DHCP server krytenuk1971 Linux - Networking 2 06-25-2006 03:44 PM
New to dhcp- can't get server to start- error mesgs. aquaboot Linux - Networking 4 09-22-2005 01:23 PM

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

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