LinuxQuestions.org
Visit Jeremy's Blog.
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 08-22-2005, 11:38 PM   #1
Hambone_20003
Member
 
Registered: Feb 2005
Posts: 42

Rep: Reputation: 15
Help with DHCP server


Hi I have been working with linux for sometime now however i still do not know everything that there is to know. I am trying to setup a DHCP server on Debian Sarge. I have all of the files that I think I need. They are as follows /etc/dhcpd.conf, /etc/dhcpd.leases and /etc/dhcpd.leases~. I have edited my dhcpd.conf file to look as follows

default-lease-time 21600;
max-lease-time 21600;
option domain-name-servers 63.167.144.2, 63.167.144.3;
option domain-name "netecin.net";
authoritative;

subnet 72.29.56.0 netmask 255.255.255.0 {
range 72.29.56.16 72.29.56.254;
option routers 72.29.56.1;
option subnet-mask 255.255.255.0;
option broadcast-address 72.29.56.255;
}

subnet 72.29.58.0 netmask 255.255.255.0 {
}

I had to add the subnet of 72.29.58.0 because that was the range that my server was on. If I did not have this I was unable to get the dhcp service to start. I am just doing this to test and see if I can get a dhcp server running. To start the dhcp service this is what I type /usr/sbin/dhcpd and it tells me that the dhcp server is started and listening on eth0 and sending on eth0. However I am unable to get my M$ machine to pull an address from the server. I have the server plugged into a switch as well as the M$ machine but no luck. I don't know if I have forgotten to edit something or put something in. Any help would be greatly appreciated. I am stumped as of right now. Also if someone could tell me what i need to edit to make the server start dhcp on boot I would appreciate that. Thanks in advance.
 
Old 08-23-2005, 03:06 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
which dhcp server are you running?
can you also post how many interfaces you have, if they are bridged, and what ipaddresses they have? basically a 'ifconfig' should do the job :-)
for dhcp3 i only know following:

you need to know which interface it is supposed to be serving the dhcp offers on (in my example eth1, assuming eth2 goes to the internet)
then eth1 must have an address in this range 72.29.56.0/24
also, if you have a look in /etc/default/dhcp3-server you have the option of limiting the dhcp server to a physical device, specified by a device name, not the subnet range.

run 'cat -f /var/log/syslog' while you start up the dhcp server,
and have 'iptraf' running while you send out a dhcp request from you MS machine.

make sure syslog holds no errors for dhcp when starting the service, some of the notes in there can be pretty helpful
 
Old 08-23-2005, 09:04 AM   #3
Hambone_20003
Member
 
Registered: Feb 2005
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for getting back to me. I actually have two interfaces on this particular server but when I do ifconfig I only get eth0 which is fine for me I don't really need the other nic at the moment. They are not bridged togther. Internet Software Consortium DHCP server 2.0p15 is the type of server that I am running. If you need any more info please let me know. Also eth0 is fine and that is where the server says that it is pushing the information out of eth0

Last edited by Hambone_20003; 08-23-2005 at 09:11 AM.
 
Old 08-23-2005, 09:38 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
what ip address does eth0 have?
 
Old 08-23-2005, 12:18 PM   #5
Hambone_20003
Member
 
Registered: Feb 2005
Posts: 42

Original Poster
Rep: Reputation: 15
Thank you for your help I got it up and running and it is working great. I actually went into my /etc/default and then changed dhcp file to say eth0 and it brought everything up. So I appreciate your help. I thank you for taking your time to get me through this.
 
  


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
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

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

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