Project

General

Profile

Actions

Bug #6429

closed

DHCP: makeing dynamic entry static does not work

Added by Grischa Zengel almost 9 years ago. Updated almost 9 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
-
Start date:
05/31/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

I have this entry:
10.32.12.246 64:bc:0c:80:52:89 2016/05/31 22:04:39 2016/06/01 00:04:39 online active

and make it static:
10.32.12.30 64:bc:0c:80:52:89 nexus-5x-ggz Smartphone GGZ n/a n/a online static

after this I see both entries and my smartphone still gets the old ip.

After restarting the dhcp server both entries are first offline and if the smartphone gets an update both are online.

On restarting the dhcp server I get:

May 31 22:46:54 php-fpm 51081 /services_dhcp.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid em0 em0_vlan12 em0_vlan190 em0_vlan13 em0_vlan3456' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.3.3-P1 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Config file: /etc/dhcpd.conf Database file: /var/db/dhcpd.leases PID file: /var/run/dhcpd.pid Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 117 leases to leases file. Listening on BPF/em0_vlan3456/02:0a:32:c0:77:04/192.168.255.0/24 Sending on BPF/em0_vlan3456/02:0a:32:c0:77:04/192.168.255.0/24 Listening on BPF/em0_vlan13/02:0a:32:c0:77:04/10.32.13.0/24 Sending on BPF/em0_vlan13/02:0a:32:c0:77:04/10.32.13.0/24 Listening on BPF/em0_vlan190/02:0a:32:c0:77:04/192.168.19.0/24 Sending on BPF/em0_vlan190/02:0a:32:c0:77:04/

Actions #1

Updated by Chris Buechler almost 9 years ago

  • Status changed from New to Not a Bug
  • Affected Version deleted (2.3.1)

works fine.

Jun 15 17:15:51    dhcpd        DHCPREQUEST for 192.168.1.10 from 00:0c:29:6d:f0:86 via em1: lease 192.168.1.10 unavailable.
Jun 15 17:15:51    dhcpd        DHCPNAK on 192.168.1.10 to 00:0c:29:6d:f0:86 via em1
Jun 15 17:15:51    dhcpd        DHCPDISCOVER from 00:0c:29:6d:f0:86 via em1
Jun 15 17:15:51    dhcpd        DHCPOFFER on 192.168.1.250 to 00:0c:29:6d:f0:86 via em1

delete the lease from the pool if you don't want it to appear in the list immediately, otherwise it'll go away on its own with time.

Actions #2

Updated by Grischa Zengel almost 9 years ago

I changed it 15 days ago and I still get the wrong IP.
If I do this with Windows dhcp and disable and enable WLAN I will get the new IP.

There is something wrong.

Maximum lease time: 7200

23:04:31.708435 64:bc:0c:80:52:89 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 356: (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 342)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 64:bc:0c:80:52:89, length 314, xid 0x16ab8b40, Flags [none] (0x0000)
      Client-Ethernet-Address 64:bc:0c:80:52:89
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Discover
        Client-ID Option 61, length 7: ether 64:bc:0c:80:52:89
        MSZ Option 57, length 2: 1500
        Vendor-Class Option 60, length 18: "android-dhcp-6.0.1" 
        Hostname Option 12, length 24: "android-17b7f7f6f3e5f3dd" 
        Parameter-Request Option 55, length 9: 
          Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
          MTU, BR, Lease-Time, RN
          RB
23:04:32.709014 02:0a:32:c0:77:04 > 64:bc:0c:80:52:89, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    10.32.12.1.67 > 10.32.12.246.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x16ab8b40, Flags [none] (0x0000)
      Your-IP 10.32.12.246
      Client-Ethernet-Address 64:bc:0c:80:52:89
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Offer
        Server-ID Option 54, length 4: 10.32.12.1
        Lease-Time Option 51, length 4: 6982
        Subnet-Mask Option 1, length 4: 255.255.255.0
        Default-Gateway Option 3, length 4: 10.32.12.1
        Domain-Name-Server Option 6, length 4: 10.32.12.1
        Domain-Name Option 15, length 16: "donner14.private" 
23:04:32.723704 64:bc:0c:80:52:89 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 368: (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 354)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 64:bc:0c:80:52:89, length 326, xid 0x16ab8b40, secs 1, Flags [none] (0x0000)
      Client-Ethernet-Address 64:bc:0c:80:52:89
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Request
        Client-ID Option 61, length 7: ether 64:bc:0c:80:52:89
        Requested-IP Option 50, length 4: 10.32.12.246
        Server-ID Option 54, length 4: 10.32.12.1
        MSZ Option 57, length 2: 1500
        Vendor-Class Option 60, length 18: "android-dhcp-6.0.1" 
        Hostname Option 12, length 24: "android-17b7f7f6f3e5f3dd" 
        Parameter-Request Option 55, length 9: 
          Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
          MTU, BR, Lease-Time, RN
          RB
23:04:32.723795 02:0a:32:c0:77:04 > 64:bc:0c:80:52:89, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    10.32.12.1.67 > 10.32.12.246.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x16ab8b40, secs 1, Flags [none] (0x0000)
      Your-IP 10.32.12.246
      Client-Ethernet-Address 64:bc:0c:80:52:89
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: ACK
        Server-ID Option 54, length 4: 10.32.12.1
        Lease-Time Option 51, length 4: 6981
        Subnet-Mask Option 1, length 4: 255.255.255.0
        Default-Gateway Option 3, length 4: 10.32.12.1
        Domain-Name-Server Option 6, length 4: 10.32.12.1
        Domain-Name Option 15, length 16: "donner14.private" 
Leases
Actions
    192.168.180.65     94:de:80:b6:0a:a4     ws-buero         2016/06/15 22:57:24     2016/06/16 00:57:24     online     active     
    192.168.180.61     00:00:74:8e:c5:8b     Kopierer         2016/06/15 22:21:06     2016/06/16 00:21:06     offline     active     
    192.168.180.96     00:1c:25:9c:26:a7     ggz-w7         2016/06/15 22:11:59     2016/06/16 00:11:59     online     active     
    10.32.12.246     64:bc:0c:80:52:89     android-17b7f7f6f3e5f3dd         2016/06/15 23:00:53     2016/06/16 01:00:53     online     active     
    10.32.12.247     64:bc:0c:7f:24:4a     android-a2aa5c13e0c2524d         2016/06/15 22:51:03     2016/06/16 00:51:03     online     active     
    10.32.12.227     b8:27:eb:ed:65:a4             2016/06/15 22:22:49     2016/06/16 00:22:49     offline     active     
    10.32.12.217     10:ae:60:25:e9:f3     kindle-7d1eba54a         2016/06/15 22:22:20     2016/06/16 00:22:20     online     active     
    10.32.12.226     00:11:22:33:44:55     owrt-datsche         2016/06/15 22:18:45     2016/06/16 00:18:45     online     active     
    10.32.12.20     e8:5b:5b:21:30:2c     tv-eg-wz     LG Fernseher Wohnzimmer     n/a     n/a     offline     static     
    10.32.12.21     b8:27:eb:65:48:6c     kodi-wz     Raspberry Wohnzimmer     n/a     n/a     online     static     
    10.32.12.22     b8:27:eb:09:e0:9b     kodi-gast         n/a     n/a     offline     static     
    10.32.12.30     64:bc:0c:80:52:89     nexus-5x-ggz     Smartphone GGZ     n/a     n/a     online     static     
    10.32.13.11     00:04:13:71:98:cb     snom11         n/a     n/a     online     static     
    10.32.13.55     7c:1e:b3:00:e6:1a     tfe-main     TFE Haustüre     n/a     n/a     online     static     
    10.32.13.110     7c:2f:80:5c:2c:27     dect_master     DECT IP Manager     n/a     n/a     online     static     
    10.32.13.111     7c:2f:80:5e:34:6a     dect_eg1     DECT AP EG 1/2     n/a     n/a     offline     static     
    10.32.13.112     7c:2f:80:5e:34:6b     dect_eg2     DECT AP EG 2/2     n/a     n/a     offline     static     
    10.32.13.113     7c:2f:80:5e:08:54     dect_og1     DECT AP OG 1/2     n/a     n/a     offline     static     
    10.32.13.114     7c:2f:80:5e:08:55     dect_og2     DECT AP OG 2/2     n/a     n/a     offline     static     
    192.168.255.123     02:0a:52:91:51:5d     test-w10         n/a     n/a     offline     static     
Leases in Use
LAN_INSTALL     192.168.180.50     192.168.180.99     3
LAN_INTRANET     10.32.12.200     10.32.12.250     5
DHCP Static Mappings for this Interface
Static ARP     MAC address     IP address     Hostname     Description     
    e8:5b:5b:21:30:2c     10.32.12.20     tv-eg-wz     LG Fernseher Wohnzimmer     
    b8:27:eb:65:48:6c     10.32.12.21     kodi-wz     Raspberry Wohnzimmer     
    b8:27:eb:09:e0:9b     10.32.12.22     kodi-gast         
    64:bc:0c:80:52:89     10.32.12.30     nexus-5x-ggz     Smartphone GGZ     
Actions #3

Updated by Grischa Zengel almost 9 years ago

Is it normal to have a lot of such old entries:

192.168.19.200     5c:e8:eb:5c:80:20             2014/09/17 12:57:59     2014/09/17 13:22:34     offline     expired     
192.168.180.71     00:16:17:c0:b7:55             2014/09/21 16:41:32     2014/09/21 18:41:32     offline     expired     
192.168.19.205     78:4b:87:d9:7a:47             2014/09/21 16:57:56     2014/09/21 17:57:56     offline     expired     
> grep lease dhcpd.leases | wc
123 384 2816
Actions #4

Updated by Grischa Zengel almost 9 years ago

delete the lease from the pool if you don't want it to appear in the list immediately, otherwise it'll go away on its own with time.

10.32.12.217     10:ae:60:25:e9:f3     kindle-7d1eba54a         2016/06/15 23:22:21     2016/06/16 01:22:21     online     active     

I can't delete a lease. These leases only have "add static" and "add WOL".

Actions #5

Updated by Grischa Zengel almost 9 years ago

Remember I did restart DHCP without success.

log show newest first

Jun 15 23:04:32     dhcpd         DHCPACK on 10.32.12.246 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 15 23:04:32     dhcpd         DHCPREQUEST for 10.32.12.246 (10.32.12.1) from 64:bc:0c:80:52:89 via em0_vlan12
Jun 15 23:04:32     dhcpd         reuse_lease: lease age 219 (secs) under 25% threshold, reply with unaltered, existing lease
Jun 15 23:04:32     dhcpd         DHCPOFFER on 10.32.12.246 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 15 23:04:31     dhcpd         DHCPDISCOVER from 64:bc:0c:80:52:89 (android-17b7f7f6f3e5f3dd) via em0_vlan12 

Now after rebooting the pfsense it works:

log show newest first

Jun 16 00:02:46     dhcpd         DHCPACK on 10.32.12.30 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:46     dhcpd         DHCPREQUEST for 10.32.12.30 (10.32.12.1) from 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:46     dhcpd         uid lease 10.32.12.246 for client 64:bc:0c:80:52:89 is duplicate on 10.32.12.0/24
Jun 16 00:02:46     dhcpd         DHCPOFFER on 10.32.12.30 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:46     dhcpd         DHCPDISCOVER from 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:46     dhcpd         uid lease 10.32.12.246 for client 64:bc:0c:80:52:89 is duplicate on 10.32.12.0/24
Jun 16 00:02:43     dhcpd         DHCPACK on 10.32.12.30 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:43     dhcpd         DHCPREQUEST for 10.32.12.30 (10.32.12.1) from 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:43     dhcpd         uid lease 10.32.12.246 for client 64:bc:0c:80:52:89 is duplicate on 10.32.12.0/24
Jun 16 00:02:43     dhcpd         DHCPOFFER on 10.32.12.30 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:43     dhcpd         DHCPDISCOVER from 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:43     dhcpd         uid lease 10.32.12.246 for client 64:bc:0c:80:52:89 is duplicate on 10.32.12.0/24
Jun 16 00:02:43     dhcpd         DHCPNAK on 10.32.12.246 to 64:bc:0c:80:52:89 via em0_vlan12
Jun 16 00:02:43     dhcpd         DHCPREQUEST for 10.32.12.246 from 64:bc:0c:80:52:89 via em0_vlan12: lease 10.32.12.246 unavailable. 
Actions #6

Updated by Grischa Zengel almost 9 years ago

After rebooting it works.
I add an other Nexus 5X to static and it worked as expected.
I don't know why a reboot was necessary.

Actions

Also available in: Atom PDF