LinuxQuestions.org
Review your favorite Linux distribution.
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-11-2004, 02:14 PM   #1
sagif
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
DHCP server delivers addresses in reverse order


I've downloaded and installed the DHCP server version 3.0 from ISC. It was installed on the Mandrake Linux 9.1. It's working fine, delivers IP configuration as necessary, but there is an interesting aspect - the addresses are being assigned starting from the highest one towards the lowest one. For example, if I create an address pool of X.Y.Z.1 - X.Y.Z.250, the first address being assigned is X.Y.Z.250, and not X.Y.Z.1, as it should be. How can I solve this issue?

Last edited by sagif; 02-14-2004 at 11:53 AM.
 
Old 02-12-2004, 02:51 PM   #2
nikolaus
LQ Newbie
 
Registered: Feb 2004
Location: Cologne / Germany
Distribution: rh9, rh-adv3, suse9, sles8
Posts: 16

Rep: Reputation: 0
DHCP reverse addresses

Sorry, but i can not understand what is the issue.
A DHCP service dynamically delivers addresses - as You service does.
A client gets a unique address from the address pool and uses it. What specific address the client gets from a pool has no impact on the clients function.

But:
You could configure DHCPD and the clients to be "more sticky" on his address assignments. Chekc the manuals for "maximum lease time".

If you wnat to assign specific addresses to specific hosts (e.g. printserverbox), you need to add a specific "host" configuration directive for each system that should get a "fixed address" from the DHCPD.
There are lot's of samples and some quite good "HOWTO" documents out there ...
 
Old 02-14-2004, 11:52 AM   #3
sagif
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I mean, that a DHCP server should assign the addresses from the beginning of the pool, not from it's end as it does, i.e. last address in it. Once again, an example: There is a pool of 192.168.10.1 - 192.168.10.200. There are no "sticky" addresses. The "/etc/lib/dhcp/dhcp.leases" file is completely empty. A very first client trying to obtaing an IP address, receives the 192.168.10.200 address, and not the 192.168.10.1, as it should. The second client obtains the 192.168.10.199 address and so on.
 
Old 02-14-2004, 12:47 PM   #4
nikolaus
LQ Newbie
 
Registered: Feb 2004
Location: Cologne / Germany
Distribution: rh9, rh-adv3, suse9, sles8
Posts: 16

Rep: Reputation: 0
I already understood You complaint from the 1st request.
I still can't understand, why the leases order has an importance for You application. Taking just the functional aspect (and by my experience since 1989), the adresses order really does not matter.

There is no rule for "ordered leases", and even no "MAY" expression within the written standards. Thus, a DHCP service may lease adresses from its pool in any order.

You probably should send Your request to the RFC editor. As far as i know, the RFC2131 (ftp://ftp.rfc-editor.org/in-notes/rfc2131.txt) does not contain any rules for the order of dynamic leases.

Another option would be to contact ISC (manufacturer of the ISC DHCPD) and ask them for the very reasons for "reverse ordered leases".
 
  


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
CUPS-Don't know how do print in reverse order. SonicGT Linux - Software 1 10-10-2005 02:57 AM
reverse order some lines of text files Melsync Programming 4 09-20-2005 04:40 PM
How to fool my ISP into accepting a static ip address, when it delivers via DHCP? vdemuth Linux - Networking 3 04-12-2004 11:07 AM
reverse order logs (maillog) jules_fraser Linux - Networking 2 01-04-2004 05:11 AM
Reverse Order Printing lawrencegoodman Linux - Newbie 2 11-13-2003 07:59 AM

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

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