DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2008
edhunter's Avatar
edhunter edhunter is offline
Real Name: Georgi Iovchev
Port Guard
 
Join Date: May 2008
Location: Sofia, Bulgaria
Posts: 41
Unhappy dhcpd problems... dynamic and static leases present

Hello guys. I need some help.
In my network I have set up a dhcp server on freebsd 6.3.

But I have some troubles. Here is message log:
Code:
May 16 15:49:59 netis0 dhcpd: Dynamic and static leases present for 192.168.0.144.
May 16 15:49:59 netis0 dhcpd: Remove host declaration vlado or remove 192.168.0.144
May 16 15:49:59 netis0 dhcpd: from the dynamic address pool for 192.168.0/24
May 16 15:50:02 netis0 dhcpd: Dynamic and static leases present for 192.168.0.144.
May 16 15:50:02 netis0 dhcpd: Remove host declaration vlado or remove 192.168.0.144
May 16 15:50:02 netis0 dhcpd: from the dynamic address pool for 192.168.0/24
Here is its conf file
Code:
authoritative;
option subnet-mask 255.255.255.0;
option routers 192.168.0.2;
option ntp-servers 192.168.0.2;
option domain-name "pulsar.bg";
option broadcast-address 192.168.0.255;
option domain-name-servers 192.168.0.2;
option netbios-name-servers 192.168.0.2;
option netbios-node-type 8;
default-lease-time 259200;
max-lease-time 259200;
ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {

    #uknown
    pool {
        allow unknown-clients;
        deny known-clients;
        range 192.168.0.101 192.168.0.199;
    }

    #known - here I'll put hosts
    group {
        deny unknown-clients;
        host geopc {
            hardware ethernet  00:30:18:A8:06:0D;
            fixed-address 192.168.0.60;}

        host jazz {
            hardware ethernet 00:1A:4D:5C:9F:7F;
            fixed-address 192.168.0.58;}

        host vlado {
            hardware ethernet 00:1A:4D:5B:86:0B;
            fixed-address 192.168.0.144;}

        host ico {
            hardware ethernet 00:18:F3:C7:4E:14;
            fixed-address 192.168.0.155;}

    } #end of group
} #end of subnet
for hosts in blue I never get warnings, they are out of my range definition,
but for those in red I get warnings in message log.

I have declared deny known-clients but it doesnt matter...
Need help
Reply With Quote
  #2   (View Single Post)  
Old 16th May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

Depending on how full your network is, I'd recommend changing the IP addresses so that they are not in the DHCP pool. Or change the DHCP pool so it doesn't cover the static IP's.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #3   (View Single Post)  
Old 16th May 2008
edhunter's Avatar
edhunter edhunter is offline
Real Name: Georgi Iovchev
Port Guard
 
Join Date: May 2008
Location: Sofia, Bulgaria
Posts: 41
Default

edit: !!!ooops i'll try upper, in time of my post i havent seen the preveous!!!

I wanted to do it without changing theese hosts, because their IPs are involved in other things...

I dont have many pcs on my network .. ~30 currently.

Actually I avoid this warning when I define the same subnet twice ... like this:
Code:
...
subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.101 192.168.0.199;
}


subnet 192.168.0.0 netmask 255.255.255.0 {
   deny unknown-clients;

same hosts..... blablabla

}
but I believe this is incorect too because on dhcpd daemon startup i get these warnings:
Code:
May 16 16:38:52 netis0 dhcpd: Warning: subnet 192.168.0.0/24 overlaps subnet 192.168.0.0/24
May 16 16:38:52 netis0 dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.

Last edited by edhunter; 16th May 2008 at 01:44 PM.
Reply With Quote
  #4   (View Single Post)  
Old 16th May 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default

Code:
pool {
        allow unknown-clients;
        deny known-clients;
        range 192.168.0.101 192.168.0.143;
        range 192.168.0.145 192.168.0.154;
        range 192.168.0.156 192.168.0.199;
       }
Now stop and start dhcpd again:

Quote:
#killall dhcpd && dhcpd
__________________
The power of plain text? It can control an entire OS
Reply With Quote
  #5   (View Single Post)  
Old 16th May 2008
edhunter's Avatar
edhunter edhunter is offline
Real Name: Georgi Iovchev
Port Guard
 
Join Date: May 2008
Location: Sofia, Bulgaria
Posts: 41
Default

Quote:
Originally Posted by 18Googol2 View Post
Code:
pool {
        allow unknown-clients;
        deny known-clients;
        range 192.168.0.101 192.168.0.143;
        range 192.168.0.145 192.168.0.154;
        range 192.168.0.156 192.168.0.199;
       }
Now stop and start dhcpd again:
Strange ... it didnt help:

Code:
May 16 16:46:14 netis0 dhcpd: Dynamic and static leases present for 192.168.0.144.
May 16 16:46:14 netis0 dhcpd: Remove host declaration vlado or remove 192.168.0.144
May 16 16:46:14 netis0 dhcpd: from the dynamic address pool for 192.168.0/24
May 16 16:46:16 netis0 dhcpd: Dynamic and static leases present for 192.168.0.144.
May 16 16:46:16 netis0 dhcpd: Remove host declaration vlado or remove 192.168.0.144
May 16 16:46:16 netis0 dhcpd: from the dynamic address pool for 192.168.0/24
EDIT: stupid me... I have been editing wrong file (dhcpd.conf-backup)
now it works with definied multiple ranges excluding fixed addressess

Last edited by edhunter; 16th May 2008 at 01:50 PM.
Reply With Quote
  #6   (View Single Post)  
Old 16th May 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default

Edit: So does it work? Otherwise, try the following configuration:

Code:
subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.101 192.168.0.143;
        range 192.168.0.145 192.168.0.154;
        range 192.168.0.156 192.168.0.199;
}

        host geopc {
            hardware ethernet  00:30:18:A8:06:0D;
            fixed-address 192.168.0.60;}

        host jazz {
            hardware ethernet 00:1A:4D:5C:9F:7F;
            fixed-address 192.168.0.58;}

        host vlado {
            hardware ethernet 00:1A:4D:5B:86:0B;
            fixed-address 192.168.0.144;}

        host ico {
            hardware ethernet 00:18:F3:C7:4E:14;
            fixed-address 192.168.0.155;}
__________________
The power of plain text? It can control an entire OS

Last edited by 18Googol2; 16th May 2008 at 02:07 PM.
Reply With Quote
  #7   (View Single Post)  
Old 16th May 2008
edhunter's Avatar
edhunter edhunter is offline
Real Name: Georgi Iovchev
Port Guard
 
Join Date: May 2008
Location: Sofia, Bulgaria
Posts: 41
Default

It works
Reply With Quote
  #8   (View Single Post)  
Old 16th May 2008
edhunter's Avatar
edhunter edhunter is offline
Real Name: Georgi Iovchev
Port Guard
 
Join Date: May 2008
Location: Sofia, Bulgaria
Posts: 41
Default Another dhcpd question :)

Now one more thing ... is it possible to assign two ip addressess with differrent netmask to one host???

host geopc need two ip addresses - local and real
192.168.0.60 with mask 255.255.255.0
and
212.72.201.xx with mask 255.255.255.240 (28bits).
Currently this (i am sitting on it) is winxp machine with manually assigned ip adressess.
Reply With Quote
Reply

Tags
dhcp

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
snd_emu10k1 and static kly FreeBSD General 3 17th September 2009 01:28 PM
Partition(s) present but not detected after panic jb_daefo FreeBSD General 0 29th May 2009 07:01 PM
Dynamic Traffic Shaping LordZ OpenBSD Security 6 19th January 2009 04:30 PM
Static IP address problem rex FreeBSD General 2 25th November 2008 08:53 PM
Cannot assign static IP. bsdnewbie999 OpenBSD General 5 21st June 2008 09:50 AM


All times are GMT. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick