dhcpd not receiving DHCPRELEASE and not freeng leases

Евгений Ерофеев e.erofeev at tr.center.rt.ru
Thu Jun 14 05:59:20 UTC 2012


Hello all!

Does anyone have any ideas regarding problem below? 

-----Original Message-----
From: Евгений Ерофеев [mailto:e.erofeev at tr.center.rt.ru] 
Sent: Thursday, June 07, 2012 11:07 AM
To: 'dhcp-users at lists.isc.org'
Subject: dhcpd not receiving DHCPRELEASE and not freeng leases

Hello!

Server is receiving requests from clients and giving them addresses well,
but not receiving DCHP Release messages, and not freeing leases.

Here client requests and receives address and releases it(sniffing on
network interface with tshark):

# tshark -i eth2 udp port 67
Capturing on eth2
 0.000000      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover -
Transaction ID 0x84015146
 1.006523 192.168.10.10 -> 192.168.10.50 DHCP 342 DHCP Offer     -
Transaction ID 0x84015146
 1.009113      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Request  -
Transaction ID 0x84015146
 1.065067 192.168.10.10 -> 192.168.10.50 DHCP 342 DHCP ACK       -
Transaction ID 0x84015146
 5.358745 192.168.10.50 -> 192.168.10.10 DHCP 342 DHCP Release   -
Transaction ID 0x76db7505

Here are messages from /var/log/syslog:

Jun  6 17:51:46 si3000-fw01 kernel: [608371.509562] device eth2 entered
promiscuous mode Jun  6 17:51:53 si3000-fw01 dhcpd: DHCPDISCOVER from
52:54:00:19:ec:6a via eth2 Jun  6 17:51:54 si3000-fw01 dhcpd: DHCPOFFER on
192.168.10.50 to 52:54:00:19:ec:6a via eth2 Jun  6 17:51:54 si3000-fw01
dhcpd: DHCPREQUEST for 192.168.10.50 (192.168.10.10) from 52:54:00:19:ec:6a
via eth2 Jun  6 17:51:54 si3000-fw01 dhcpd: DHCPACK on 192.168.10.50 to
52:54:00:19:ec:6a via eth2 Jun  6 17:52:30 si3000-fw01 kernel:
[608415.403433] device eth2 left promiscuous mode

There is no release part in logs, and lease stays in
/var/lib/dhcp/dhcp.leases:

# cat dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.2.4

server-duid "\000\001\000\001\027[R\264RT\000\204\341\360";

lease 192.168.10.50 {
 starts 3 2012/06/06 13:22:01;
 ends 4 2012/06/07 13:22:01;
 cltt 3 2012/06/06 13:22:01;
 binding state active;
 next binding state free;
 rewind binding state free;
 hardware ethernet 52:54:00:19:ec:6a;
 uid "si3000-ast";
}
lease 192.168.10.50 {
 starts 3 2012/06/06 13:51:54;
 ends 4 2012/06/07 13:51:54;
 cltt 3 2012/06/06 13:51:54;
 binding state active;
 next binding state free;
 rewind binding state free;
 hardware ethernet 52:54:00:19:ec:6a;
 uid "si3000-ast";
}

For some reason there are 2 leases, by the way..

dhcpd is started as:
/usr/local/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid
eth2

# cat /etc/dhcp/dhcpd.conf
ddns-update-style none;
authoritative;
log-facility local7;

subnet 192.168.10.0 netmask 255.255.255.0 {
       default-lease-time 3600;
       max-lease-time 86400;
       option routers 192.168.10.1;
       option broadcast-address 192.168.10.255;
       option subnet-mask 255.255.255.0;

       range 192.168.10.50 192.168.10.60; }

interface config:
# ifconfig eth2
eth2      Link encap:Ethernet  HWaddr 52:54:00:84:e1:f0
         inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0
         inet6 addr: fe80::5054:ff:fe84:e1f0/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:118587 errors:0 dropped:0 overruns:0 frame:0
         TX packets:53132 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:142578657 (135.9 MiB)  TX bytes:3534057 (3.3 MiB)

No firewall rules blocking traffic:
# iptables -nvL
Chain INPUT (policy ACCEPT 6455 packets, 945K bytes)
 pkts bytes target     prot opt in     out     source
destination
    0     0 ACCEPT     all  --  lo     *       0.0.0.0/0
0.0.0.0/0
99037   68M ACCEPT     all  --  *      *       0.0.0.0/0
0.0.0.0/0            state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT 5 packets, 260 bytes)
 pkts bytes target     prot opt in     out     source
destination
11017 1709K ACCEPT     all  --  *      *       0.0.0.0/0
0.0.0.0/0            state RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  vlan4081 ppp+    0.0.0.0/0
0.0.0.0/0
    0     0 ACCEPT     all  --  vlan4082 ppp+    0.0.0.0/0
0.0.0.0/0
    0     0 ACCEPT     all  --  vlan4083 ppp+    0.0.0.0/0
0.0.0.0/0

Chain OUTPUT (policy ACCEPT 104K packets, 64M bytes)
 pkts bytes target     prot opt in     out     source
destination

I'm using ISC dhcpd 4.2.4 downloaded from official site and built from
source.
OS i'm using is Debian Linux Wheezy.

Client uses the same OS and standard isc dhclient.

>From client side:

#ifup eth0
Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet
Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:54:00:19:ec:6a
Sending on   LPF/eth0/52:54:00:19:ec:6a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPREQUEST on
eth0 to 255.255.255.255 port 67 DHCPOFFER from 192.168.10.10 DHCPACK from
192.168.10.10 bound to 192.168.10.50 -- renewal in 36240 seconds.

#ifdown eth0
Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet
Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:54:00:19:ec:6a
Sending on   LPF/eth0/52:54:00:19:ec:6a
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.10.10 port 67

Could you please help fixing this?






More information about the dhcp-users mailing list