LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-23-2004, 08:39 AM   #1
egyptian
Member
 
Registered: Aug 2003
Location: egypt
Distribution: Fedora,SuSE9
Posts: 47

Rep: Reputation: 15
problem with dhcp server


i have a dhcp server runs on linux server. this server works as a proxy server for a private network
the /etc/dhcpd.conf has the configuration:

option domain-name "my-network.net";
option domain-name-servers 10.0.0.1;
option routers 10.0.0.1;
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
default-lease-time 259200; # 3 days
max-lease-time 604800; # 1 week
authoritative ;
subnet 10.0.0.0 netmask 255.255.255.0 {
range dynamic-bootp 10.10.10.2 10.10.10.100;
}
host tech {
hardware ethernet <mac addr of tech>;
fixed-address 10.0.0.235;
}

when i try to start dhcp server it fails , and gives me the error:
.
.
No subnet declaration for eth-<mac address of the external card> (0.0.0.0).
** Ignoring requests on eth-<mac address of the external card>. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth-<mac address of the external card> is attached. **

Not configured to listen on any interfaces!


Last edited by egyptian; 10-23-2004 at 08:42 AM.
 
Old 10-23-2004, 11:24 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I'm guessing here, but it looks like your system has an additional interface that has not been configured. The output of "ifconfig" should verify this. If so, you can either add the subnet declaration as pointed out in the error message or simply specify a list of interfaces for dhcpd to bind to on startup through the dhcpd command line. i.e. dhcpd eth0
 
Old 10-23-2004, 06:20 PM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Either way you would like to set wich interface the DCHP server listens to as state above. This is a security issue as the DHCP server only should serve your local network.
The setting for NIC's to bind to usually is found in the /etc/sysconfig/ directory.
 
Old 10-24-2004, 03:04 AM   #4
egyptian
Member
 
Registered: Aug 2003
Location: egypt
Distribution: Fedora,SuSE9
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ugge
Either way you would like to set wich interface the DCHP server listens to as state above. This is a security issue as the DHCP server only should serve your local network.
can i do that by an option in /etc/dhcpd.conf? what is that option?
 
Old 10-24-2004, 03:56 AM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
You set this in the file /etc/sysconfig/dhcpd file, add the line
Code:
DHCPDARGS=<name of LAN card>
 
  


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
Gateway / DHCP Server problem on Slackware captain_bogus Linux - Networking 11 11-25-2008 02:28 PM
Problem with DHCP Server. Hambone_20003 Linux - Networking 2 11-22-2005 07:25 PM
problem with dhcp server version 2.0p15 of Snapgear maryam Linux - Networking 0 09-08-2005 11:40 AM
DHCP Server Problem bally Linux - General 1 11-10-2003 12:30 PM
DHCP server config problem Q25 Linux - Networking 2 07-18-2003 08:58 AM


All times are GMT -5. The time now is 01:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration