[opensuse] stubborn dhcpd on 12.1
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error: dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases So, I stopped the daemon, deleted /var/lib/dhcpd/dhcpd.leases, and restarted the daemon. The error persists. I am using the daemon to give out fixed addresses to various devices (e.g., GigE Vision cameras). In this case, the devices have the interface to themselves. So, aside from the interface address itself, only the single fixed address. This is the relevant part of my dhcpd.conf file: option domain-name "rst"; default-lease-time 345600; ddns-update-style none; ignore unknown-clients; subnet 10.1.1.0 netmask 255.255.255.0 { default-lease-time 345600; } subnet 10.1.2.0 netmask 255.255.255.0 { default-lease-time 345600; } # Change next-server to name of this computer. # Since SUSE 10.3, it seems next-server must be set to the IP address... next-server 10.1.6.29; group { # GigE PAVUE cameras host cameraA { option host-name "cameraA"; fixed-address 10.1.1.10; hardware ethernet 00:0F:31:01:F7:8B; } host cameraB { option host-name "cameraB"; fixed-address 10.1.2.10; hardware ethernet 00:0F:31:02:08:59; } } If either cameraA or cameraB request an address, they get the error message. I can't see what is different from other systems where I have set up the same thing... Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
# Change next-server to name of this computer. # Since SUSE 10.3, it seems next-server must be set to the IP # address... next-server 10.1.6.29;
I have no problems using a name here.
host cameraA { option host-name "cameraA"; fixed-address 10.1.1.10; hardware ethernet 00:0F:31:01:F7:8B; }
I doubt if it makes much difference, but I don't use "option host-name" in my static definitions. I use "use-host-decl-names on" in the group definition instead. -- Per Jessen, Zürich (-1.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2013-01-15 at 11:07 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
This is where is gets more mysterious. If I instead have the following in my config file: subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.8 10.1.1.9; default-lease-time 345600; } where a dynamic range is specified, thus leaving my fixed address out of the dynamic pool, the daemon stops printing the DHCPDISCOVER attempts and the device still gets no address.
# Change next-server to name of this computer. # Since SUSE 10.3, it seems next-server must be set to the IP # address... next-server 10.1.6.29; I have no problems using a name here.
Maybe the use of a name is working again. It is an old comment. Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:07 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
This is where is gets more mysterious. If I instead have the following in my config file:
subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.8 10.1.1.9; default-lease-time 345600; }
where a dynamic range is specified, thus leaving my fixed address out of the dynamic pool, the daemon stops printing the DHCPDISCOVER attempts and the device still gets no address.
That's weird, you still ought to see the DISCOVER->OFFER->REQUEST->ACK sequence. -- Per Jessen, Zürich (-0.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2013-01-15 at 11:39 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:07 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
This is where is gets more mysterious. If I instead have the following in my config file:
subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.8 10.1.1.9; default-lease-time 345600; }
where a dynamic range is specified, thus leaving my fixed address out of the dynamic pool, the daemon stops printing the DHCPDISCOVER attempts and the device still gets no address.
That's weird, you still ought to see the DISCOVER->OFFER->REQUEST->ACK sequence.
Yep. It is easily reproducible. I have two identical interfaces. Which ever one I specify the range for exhibits the behavior. The other continues with the DHCPDISCOVER and no leases free. It is the current 12.1 version, but it happened in the previous one as well: dhcp-server-4.2.4.P2-0.6.13.1
-- Per Jessen, Zürich (-0.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland.
Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:39 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:07 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
This is where is gets more mysterious. If I instead have the following in my config file:
subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.8 10.1.1.9; default-lease-time 345600; }
where a dynamic range is specified, thus leaving my fixed address out of the dynamic pool, the daemon stops printing the DHCPDISCOVER attempts and the device still gets no address.
That's weird, you still ought to see the DISCOVER->OFFER->REQUEST->ACK sequence.
Yep. It is easily reproducible. I have two identical interfaces. Which ever one I specify the range for exhibits the behavior. The other continues with the DHCPDISCOVER and no leases free.
It is the current 12.1 version, but it happened in the previous one as well:
dhcp-server-4.2.4.P2-0.6.13.1
Mine is older = dhcp-server-4.1.2.ESV.1-0.12.1.i586, but I don't think that should make much difference. When you don't get the DISCOVER message, my guess is that it isn't being seen by dhcpd, because presumably the client still does a DISCOVER. Maybe check with tcpdump that the interface does in fact get the DISCOVER. -- Per Jessen, Zürich (0.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2013-01-15 at 12:16 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:39 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2013-01-15 at 11:07 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am setting up a new openSUSE 12.1 system, and have configured dhcpd as I always do. For some reason, I am getting the 'no more leases' error:
dhcpd: DHCPDISCOVER from 00:0f:31:02:08:59 via eth2: network 10.1.1.0/24: no free leases
When you have no dynamic range defined, this seems reasonable, so the issue is why the static definition isn't being picked up? Either a bad definition, but that would prevent dhcpd from starting or a mismatched MAC-address?
This is where is gets more mysterious. If I instead have the following in my config file:
subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.8 10.1.1.9; default-lease-time 345600; }
where a dynamic range is specified, thus leaving my fixed address out of the dynamic pool, the daemon stops printing the DHCPDISCOVER attempts and the device still gets no address.
That's weird, you still ought to see the DISCOVER->OFFER->REQUEST->ACK sequence.
Yep. It is easily reproducible. I have two identical interfaces. Which ever one I specify the range for exhibits the behavior. The other continues with the DHCPDISCOVER and no leases free.
It is the current 12.1 version, but it happened in the previous one as well:
dhcp-server-4.2.4.P2-0.6.13.1
Mine is older = dhcp-server-4.1.2.ESV.1-0.12.1.i586, but I don't think that should make much difference.
When you don't get the DISCOVER message, my guess is that it isn't being seen by dhcpd, because presumably the client still does a DISCOVER. Maybe check with tcpdump that the interface does in fact get the DISCOVER.
The devices do a discover every 60 seconds until they get an address. Without touching the devices, starting/stopping the daemon with the dynamic range off or on results in the discover being printed or not. The devices, of course, do not know this has been done, so they do not stop their discovery attempts. In the man page for dhcpd, my usage is called BOOTP. The example they provide is: host haagen { hardware ethernet 08:00:2b:4c:59:23; fixed-address 239.252.197.9; filename "/tftpboot/haagen.boot"; } which is the similar to mine, except I do not give a file name, and I set the hot name: host cameraA { option host-name "cameraA"; fixed-address 10.1.1.10; hardware ethernet 00:0F:31:01:F7:8B; } The man page also says: "If a subnet will only be provided with BOOTP service and no dynamic address assignment, the range clause can be left out entirely, but the subnet statement must appear." I think I am meeting these requirements. I am not sure how to continue. Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
The devices do a discover every 60 seconds until they get an address. Without touching the devices, starting/stopping the daemon with the dynamic range off or on results in the discover being printed or not. The devices, of course, do not know this has been done, so they do not stop their discovery attempts.
In the man page for dhcpd, my usage is called BOOTP. The example they provide is:
host haagen { hardware ethernet 08:00:2b:4c:59:23; fixed-address 239.252.197.9; filename "/tftpboot/haagen.boot"; }
Right, that is the filename that will be fetched from the tftp server named in "next-server".
which is the similar to mine, except I do not give a file name, and I set the hot name:
host cameraA { option host-name "cameraA"; fixed-address 10.1.1.10; hardware ethernet 00:0F:31:01:F7:8B; }
This is a normal static address assignment.
"If a subnet will only be provided with BOOTP service and no dynamic address assignment, the range clause can be left out entirely, but the subnet statement must appear."
I think I am meeting these requirements. I am not sure how to continue.
Proceed with debugging :-) I didn't study your dhcpd.conf in every detail, but it looks fine to me. You seem to have two separate issues: a) "no free leases" despite static address declarations. Your MAC addresses appear to match, so might this be because the static address cannot be given out over the network the request came on? b) no DISCOVER messages when in a certain network config. Because it works in config A, I suspect a network problem, i.e. "no DISCOVER message being logged" -> "no DISCOVER message being received". -- Per Jessen, Zürich (0.9°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2013-01-15 at 14:11 +0100, Per Jessen wrote:
You seem to have two separate issues:
a) "no free leases" despite static address declarations.
Your MAC addresses appear to match, so might this be because the static address cannot be given out over the network the request came on?
Sigh. This was it. The system is on the other side of the country. The guys setting it up claimed things were connected as described. Alas, this was not the case. I switched the relevant values in the config file and now it is happy. Thanks for the smack on the head. I really should have done this first thing. Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Per Jessen
-
Roger Oberholtzer