LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2004, 06:04 AM   #1
pissouille
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
DHCP problem


Hello
I am an administrator network and I must install a DHCP server.
I started one but it allows a IP to workstation by the last range's IP.
That is not normal.
Here the config network used :
the IP workstations : 192.168.220.1 to 192.168.222.254 with a net mask 255.255.252.0.
My distribution is Redhat Enterprise 3, DHCP 3.0pl2
My dhcpd.conf :

ddns-update-style ad-hoc;
subnet 192.168.220.0 netmask 255.255.252.0{
option domain-name "exempletest.lan";
option routers 192.168.223.254;
option domain-name-servers 192.168.223.254;
default-lease-time 604800;
max-lease-time 604800;
range 192.168.220.1 192.168.222.254;
}

The first wks connected obtain the ip 192.168.222.254 but I'd like it to obtain 192.168.220.1

Help me please
 
Old 02-20-2004, 07:17 AM   #2
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
This is a big shot in the dark since I don't really have a clue how to set up a DHCP server in linux but why don't you try changing"

range 192.168.220.1 192.168.222.254
to:
range 192.168.222.254 192.168.220.1
?

I'd try that just for the heck of it.
 
Old 02-20-2004, 07:23 AM   #3
pissouille
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
still done

another suggest ?

thanx
 
Old 02-20-2004, 07:43 AM   #4
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
It might have to do with using a class B mask with a class C address. Is there a reason for this or can you just use 255.255.255.0 as your mask? You can try it to see if it behaves as expected. Then you will at least know what direction to take.
 
Old 02-20-2004, 09:16 AM   #5
pissouille
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
when i try with a mask 255.255.255.0,
I have a error on the dhcp start. It don't start.
 
Old 02-20-2004, 02:50 PM   #6
jhewitt
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
I have tried 4 different range configs and all 4 configs asign the highest address first, so it seems to be in the program itself.
 
Old 02-20-2004, 02:53 PM   #7
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
That's really odd. Surely there's a setting to change that. Although I can't see where it really matters although it's confusing.
 
Old 02-21-2004, 03:17 AM   #8
pissouille
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Is this an error in my configuration dhcpd.conf or my program dhcpd ?
Because my configuration dhcpd.conf seems good.

Help me please
 
Old 02-21-2004, 05:39 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You're being pretty vague as to what is actually wrong.... you say i allocates an address within the given range... so what's the problem? it's *not* meant to give them out in any particular order.. seems like it's doing exactly what you're asking of it.
 
Old 02-21-2004, 05:49 AM   #10
pissouille
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
the problem is : for the firts wks connected, my dhcp assign the last ip of the range.ex: 192.168.222.254 and not the 192.168.220.1.
There is a problem.
 
  


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
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
dhcp problem re2 Linux - Networking 7 02-14-2005 10:35 AM
dhcp problem bruj3w Linux - Networking 1 07-19-2004 10:45 PM
dhcp problem pudhiyavan Linux - Networking 3 03-10-2004 10:28 AM
dhcp problem ava Slackware 3 03-19-2003 04:11 PM

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

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