View previous topic :: View next topic |
Author |
Message |
sjap n00b
Joined: 06 Jan 2005 Posts: 35
|
Posted: Wed Jan 31, 2007 9:33 pm Post subject: problems with dhcpd |
|
|
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:5 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 |
|
|
KayZee Apprentice
Joined: 15 Oct 2003 Posts: 202 Location: Arlington, VA
|
Posted: Thu Feb 01, 2007 3:54 am Post subject: |
|
|
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 |
|
|
sjap n00b
Joined: 06 Jan 2005 Posts: 35
|
Posted: Thu Feb 01, 2007 7:29 am Post subject: |
|
|
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? |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Thu Feb 01, 2007 7:55 am Post subject: |
|
|
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 |
|
|
sjap n00b
Joined: 06 Jan 2005 Posts: 35
|
Posted: Thu Feb 01, 2007 8:02 am Post subject: |
|
|
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 |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Thu Feb 01, 2007 8:04 am Post subject: |
|
|
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 |
|
|
sjap n00b
Joined: 06 Jan 2005 Posts: 35
|
Posted: Thu Feb 01, 2007 8:10 am Post subject: |
|
|
hehe, okay |
|
Back to top |
|
|
|