Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with dhcpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sjap
n00b
n00b


Joined: 06 Jan 2005
Posts: 35

PostPosted: Wed Jan 31, 2007 9:33 pm    Post subject: problems with dhcpd Reply with quote

Hi there..

I'm running a dhcp server on my network. But i have some very weird problems with it.

00:e0:18:9d:77:58 ask for 10.0.0.7 and get it, but 10.0.0.7 is not a static ip.. :S

Jan 31 19:26:24 garfield dhcpd: DHCPREQUEST for 10.0.0.7 from 00:e0:18:9d:77:58 via eth0: unknown lease 10.0.0.7.
Jan 31 19:27:10 garfield dhcpd: DHCPINFORM from 10.0.0.7 via eth0
Jan 31 19:27:10 garfield dhcpd: DHCPACK to 10.0.0.7 (00:e0:18:9d:77:58) via eth0



My dhcpd.conf

###############

default-lease-time 86400;
max-lease-time 86400;
ddns-update-style none;
authoritative;

subnet 10.0.0.0 netmask 255.255.0.0 {
range 10.0.1.1 10.0.10.254;
option routers 10.0.0.1;
option broadcast-address 10.0.255.255;
option subnet-mask 255.255.0.0;
option domain-name "sknet.dk";
option domain-name-servers 10.0.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type 8;

host sjap.sknet.dk {
hardware ethernet 00:02:44:59:44:20;
fixed-address 10.0.0.2;
}

host jesper.sknet.dk {
hardware ethernet 00:15:f2:4b:28:0d;
fixed-address 10.0.0.3;
}

host dj.sknet.dk {
hardware ethernet 02:10:DC:85:AE:57;
fixed-address 10.0.0.4;
}
}

subnet 10.1.0.0 netmask 255.255.0.0 {
range 10.1.1.1 10.1.10.254;
option routers 10.1.0.1;
option broadcast-address 10.0.255.255;
option subnet-mask 255.255.0.0;
option domain-name "sknet.dk";
option domain-name-servers 10.1.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type 8;
}
subnet 172.8.1.0 netmask 255.255.255.0 {
range 172.8.1.50 172.8.1.100;
option routers 172.8.1.1;
option broadcast-address 172.8.1.255;
option subnet-mask 255.255.255.0;
option domain-name "butik.sknet.dk";
option domain-name-servers 172.8.1.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type 8;

host cam.sknet.dk {
hardware ethernet 00:02:A5:1F:BA:43;
fixed-address 172.8.1.2;
}
}

Can some body please help me?
Back to top
View user's profile Send private message
KayZee
Apprentice
Apprentice


Joined: 15 Oct 2003
Posts: 202
Location: Arlington, VA

PostPosted: Thu Feb 01, 2007 3:54 am    Post subject: Reply with quote

Maybe I am not understanding, but I don't necessarily see a problem.

Code:
/var/lib/dhcp/dhcpd.leases


keeps track of assigned IP addresses. Its pretty common for an IP assigned to a specific MAC address to be reassigned over and over. It can change, its not assigned as as "fixed-address", so its not static. But frequently it gets the same IP address when requesting its renewal.
Back to top
View user's profile Send private message
sjap
n00b
n00b


Joined: 06 Jan 2005
Posts: 35

PostPosted: Thu Feb 01, 2007 7:29 am    Post subject: Reply with quote

Do you don't think it is are problem ?

If you look at my IP's ranges.. My dhcp server should not send a DHCPACK with 10.0.0.7

Or maby its just me? 8O
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Feb 01, 2007 7:55 am    Post subject: Reply with quote

It's not getting an IP from your DHCP server, it's giving itself one and informing the server about it.

Quote:
If a client has obtained a network address through some other means (e.g., manual configuration), it may use a DHCPINFORM request message to obtain other local configuration parameters. Servers receiving a DHCPINFORM message construct a DHCPACK message with any local configuration parameters appropriate for the client without: allocating a new address, checking for an existing binding, filling in 'yiaddr' or including lease time parameters. The servers SHOULD unicast the DHCPACK reply to the address given in the 'ciaddr' field of the DHCPINFORM message.
Back to top
View user's profile Send private message
sjap
n00b
n00b


Joined: 06 Jan 2005
Posts: 35

PostPosted: Thu Feb 01, 2007 8:02 am    Post subject: Reply with quote

Monkeh wrote:
It's not getting an IP from your DHCP server, it's giving itself one and informing the server about it.

Quote:
If a client has obtained a network address through some other means (e.g., manual configuration), it may use a DHCPINFORM request message to obtain other local configuration parameters. Servers receiving a DHCPINFORM message construct a DHCPACK message with any local configuration parameters appropriate for the client without: allocating a new address, checking for an existing binding, filling in 'yiaddr' or including lease time parameters. The servers SHOULD unicast the DHCPACK reply to the address given in the 'ciaddr' field of the DHCPINFORM message.




Hmm.. Okay.. So 10.0.0.7 has set the ip manual, and just let my dhcp know ?
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Feb 01, 2007 8:04 am    Post subject: Reply with quote

sjap wrote:
Monkeh wrote:
It's not getting an IP from your DHCP server, it's giving itself one and informing the server about it.

Quote:
If a client has obtained a network address through some other means (e.g., manual configuration), it may use a DHCPINFORM request message to obtain other local configuration parameters. Servers receiving a DHCPINFORM message construct a DHCPACK message with any local configuration parameters appropriate for the client without: allocating a new address, checking for an existing binding, filling in 'yiaddr' or including lease time parameters. The servers SHOULD unicast the DHCPACK reply to the address given in the 'ciaddr' field of the DHCPINFORM message.




Hmm.. Okay.. So 10.0.0.7 has set the ip manual, and just let my dhcp know ?


That is what the above quote suggests.
Back to top
View user's profile Send private message
sjap
n00b
n00b


Joined: 06 Jan 2005
Posts: 35

PostPosted: Thu Feb 01, 2007 8:10 am    Post subject: Reply with quote

hehe, okay 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum