LinuxQuestions.org
Review your favorite Linux distribution.
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 07-28-2005, 05:34 AM   #1
qartis
LQ Newbie
 
Registered: Jul 2005
Distribution: slackware-current
Posts: 2

Rep: Reputation: 0
dhcpd assigns ip addresses backwards


Hey, I've got a slackware-current router, which uses ISC dhcpd v3.0.1. Our network uses 192.168.1.1 -> 192.168.1.254, so in dhcpd.conf I set
Code:
range 192.168.1.10 192.168.1.100;
It works, but it assigns 192.168.1.100, then 99, then 98, etc. I reserved 2-10 for some permanent computers, and that works. I've tried messing with the range, for example
Code:
range 192.168.1.2 192.168.1.254;
    and
range 192.168.1.254 192.168.1.2;
It always hands out the ip addresses from biggest to smallest... Here's my full dhcpd.conf:
Code:
ddns-update-style ad-hoc;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers 192.168.1.1;
        option broadcast-address 192.168.1.255;
        option subnet-mask 255.255.255.0;
        option domain-name-servers 192.168.1.1;
        range 192.168.1.10 192.168.1.100;

        default-lease-time 21600;
        max-lease-time 43200;
        #snip
}
Has anyone ever seen this?
 
Old 07-29-2005, 01:52 PM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Yup, seen it. Normal behaviour for a newly installed ISC dhcpd v3.
 
Old 08-07-2005, 06:23 PM   #3
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
Well Iīm intrested in getting my IPīs in order (from smallest to biggest).
My network is configured to be 192.168.100.1 (dhcp server) and the rest of the numbers until 254 should be assigned normally. The thing is that it assigned the number 192.168.100.254, when would like it better to assign 192.168.100.2. :-)

Is there a way to make it assign Ipīs in that order?
 
Old 08-07-2005, 07:44 PM   #4
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
[i]Is there a way to make it assign Ipīs in that order? [/B]
No.

If you want a certain IP address have the dhcp server asign it by MAC address or use static IPs.
 
Old 08-07-2005, 08:58 PM   #5
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 268

Rep: Reputation: 42
Why is it any better or worse for the computer to have the lower IP address? Since you are using DHCP I would guess that you never really access these hosts via IP address. I never really cared which way the DHCP server assigns addresses, as long as it doesn't double up.
 
Old 08-08-2005, 07:59 AM   #6
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
So is there a way for me to reset all leases. For example I use to have one computer assigned to a specific IP number (192.168.100.3). But now Iīd like to have them in the order that the DHCP assigns. I donīt want to have, for example:

Server - 192.168.100.1
Client 1 - 192.168.100.254
Client 2 - 192.168.100.3

I would prefer:

Server - 192.168.100.1
Client 1 - 192.168.100.254
Client 2 - 192.168.100.253

So the question is: How do I clear all lease configs? Because the client 2 is always getting that IP (192.168.100.3). Just for the record: In the dhcpd.conf, I havenīt made any assignment by MAC.

Thanks

Last edited by Palula; 08-08-2005 at 02:04 PM.
 
  


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
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 11:32 AM
DHCPD Not Giving Out Addresses Trano Linux - Networking 4 04-16-2005 01:12 AM
viewing how the kernal assigns hardware dr_zayus69 Linux - Hardware 12 12-02-2004 12:12 AM
viewing how the kernal assigns hardware. dr_zayus69 Linux - Hardware 1 10-01-2004 06:26 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 04:58 AM

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

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