LinuxQuestions.org
Help answer threads with 0 replies.
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 02-15-2008, 04:00 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Problem setting up DHCP server


Hi

Have a slackware 12 based linux system here and been trying to set it up as a DHCP server. Online tutorials tell me to setup a dhcpd.conf file. This is my dhcpd.conf file

Quote:
ddns-update-style none;

option domain-name-servers 203.145.184.13;

default-lease-time 86400;
max-lease-time 604800;

server-name "DHCP Server";

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.10;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.102;
}
Started the dhcpd server and everything is fine, I started it with -d option which shows the debug messages.

dhcpd -d

But when i configured a windows XP system to get an ip from a DHCP server , its not getting it. Syslog shows nothing , and i dont get any debug message either. The leases file also doesnt contain any entry

Any other place where i should check for errors?

What could be wrong.

Last edited by jayakrishnan; 02-15-2008 at 04:07 AM.
 
Old 02-15-2008, 05:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
1.Put
Quote:
option domain-name-servers 203.145.184.13;
together with the other options (i.e. inside the {... ...} part of your dhcpd.conf)
2. Before running dhcp for the first time you have to create by hand the dhcpd.leases file
3. Make sure that there is no firewall blocking port 67

You can take a look here for more info
 
Old 02-15-2008, 06:29 AM   #3
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
Hi

Thanks for the reply, no no firewall is blocking port 67
 
  


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
Setting up DHCP server... jim_naisium Ubuntu 6 11-03-2007 12:26 AM
Setting Up My First DHCP Server nko Linux - Networking 8 09-02-2006 04:22 PM
Setting up a DHCP server MasterCephus Linux - Newbie 9 06-26-2005 07:41 AM
Setting up a DHCP server blazted Linux - Newbie 6 01-28-2005 03:10 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM

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

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