Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th February 2007, 03:25 PM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
DHCP cannot start (it fails No subnet declaration)

HI.
Want to setup DHCP for Nic eth1 (192.168.2.201).
From eth1 will be cable to dhcp network (7 clients).
In the same time, I have another Nic eth0 (192.168.1.201), where internet cable comes to server. (I have disable this to get working eth1 first)

so my problem is that, I can not start Dhcp!

[root@localhost ~]# service dhcpd restart
Shutting down dhcpd: [FAILED]
Starting dhcpd: [FAILED]

My configuration is:
1. [root@localhost ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:14:85:34:5C:AF
inet addr:192.168.2.201 Bcast:192.168.2.255 Mask:255.255.255.0

2. [root@localhost ~]# dhcpd -d
No subnet declaration for eth1 (192.168.2.201).
** 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. **


Not configured to listen on any interfaces!

3. [root@localhost ~]# vi /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth1

4. ----/etc/dhcpd.conf ----------
# dhcpd.conf

ddns-update-style ad-hoc;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.201;
option routers 192.168.2.201;
option domain-name-servers 192.168.2.201;
option domain-name "your_domain.org"; # You really should fix this
option option-128 code 128 = string;
option option-129 code 129 = text;


get-lease-hostnames true;

next-server 192.168.2.201;
option root-path "192.168.2.201:/opt/ltsp/i386";

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.199;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/lts/2.6.16.1-ltsp-1/pxelinux.0";
}
else{
filename "/lts/vmlinuz-2.6.16.1-ltsp-1";
}
}

----end-of-------/etc/dhcpd.conf ----------




what to do?
Am I doing something wrong?
thanks.
__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.
Reply With Quote
  #2  
Old 7th February 2007, 09:27 AM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
any ideas?
__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.
Reply With Quote
  #3  
Old 15th February 2007, 06:58 AM
marisdembovskis's Avatar
marisdembovskis Offline
Registered User
 
Join Date: Mar 2006
Location: Gulbene - Latvia - Europe
Age: 30
Posts: 292
Ok. I found solution.
I plugged 2 cables in. one was Static internet cable, second was LTSP network cable. And I changed a lot /etc/dhcpd.conf default file, problem was in subnets addresses.
I did not know, that I need ACTIVE eth0 and eth1 to start dhcpd.
solved.
__________________
Jesus will back you UP!
Maris Dembovskis
Your life is the same as you.
---
my box=F 10 Toshiba R200 = nice & cool
was using ubuntu for a year, return to Fedora. :) Faster.

Last edited by marisdembovskis; 15th February 2007 at 08:15 AM.
Reply With Quote
  #4  
Old 28th February 2008, 07:48 PM
franck_T's Avatar
franck_T Offline
Registered User
 
Join Date: Feb 2008
Posts: 7
network dhcpd

hi may i know what means active eth0 and eth1 is it just and ifup or you need to modify the /etc/sysconfig/dhcp

thanks
franck
Reply With Quote
  #5  
Old 29th February 2008, 12:24 AM
franck_T's Avatar
franck_T Offline
Registered User
 
Join Date: Feb 2008
Posts: 7
just in case it helps. I did have the same problem using bridges.

I wanted nat a subnet and want to dhcp all machines behind your subnet.

here is what i did (my bridge is rubisbr0 and it is routing packets between eth0 and all my VM in the subnet)

edit /etc/dhcpd.conf
-----------------------------------

# Required for dhcp 3.0+ / Red Hat 8.0+
ddns-update-style interim;
ignore client-updates;

default-lease-time 259200;
max-lease-time 518400;

subnet 192.168.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "rubisva.ch";
range 192.168.1.50 192.168.1.100;
option domain-name-servers 128.178.15.227,128.178.15.229;
}

now build the bridge and iptable routing
----------------------------------------------------------
brctl addbr rubisbr0
ip addr add 192.168.1.1/24 dev rubisbr0
ip link set rubisbr0 up
iptables -t filter -F
iptables -t mangle -F
iptables -t nat -F
iptables -t filter -P FORWARD DROP
iptables -t mangle -A FORWARD -i rubisbr0 -o eth0 -j MARK --set-mark 1
iptables -t filter -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t filter -A FORWARD -m mark --mark 1 -j ACCEPT
iptables -t nat -A POSTROUTING -m mark --mark 1 -j MASQUERADE
service dhcpd restart
__________________
:cool: francky :cool:
Reply With Quote
  #6  
Old 4th January 2012, 09:03 PM
lun2lan Offline
Registered User
 
Join Date: Mar 2010
Age: 24
Posts: 1
linuxfirefox
Re: DHCP cannot start (it fails No subnet declaration)

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.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.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.
Reply With Quote
Reply

Tags
declaration, dhcp, fails, start, subnet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP won't start - expecting a parameter or declaration timmspinn Servers & Networking 2 16th October 2009 05:05 PM
#/etc/init.d/mysqld start FAILS won't start mysql cwynn Servers & Networking 17 19th September 2006 02:59 AM
DHCP fails at start up... (Fedora) Z4ndX Using Fedora 7 25th August 2006 03:49 AM
Getting hostname from DHCP on FC2 fails kama Servers & Networking 5 3rd June 2004 10:42 PM


Current GMT-time: 09:25 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat