Hello, I have a strange issue with one static lease IP and I don't really know where my problem could be.
First about my network in general:
OpenWRT router as VM on Proxmox - router on a stick
VLAN1 (servers etc)
VLAN2 (smartphones, laptops etc)
VLAN5 (wan)
IP: 192.168.1.1
OpenWrt 21.02.3 r16554-1d4dea6d4f
I know those VLAN numbers aren't recommended but let's leave it for another time.
OpenWRT dumbAP on VLAN2 .
IP: 192.168.2.2
OpenWrt 21.02.3 r16554-1d4dea6d4f
192.168.1.6 is my DNS (PiHole)
For a long time my laptop used to have a static lease (on router) of 192.168.2.5 and worked well.
Now - my laptop cannot connect to the network at all. Windows says no internet, I see it doesn't even get any IP.
When I remove that static lease - everything works fine.
When I change that static lease to anything else (even 192.168.2.6) - everything works fine.
When I set IP manually on my laptop to anything other than 192.168.2.5 - everything works fine.
When I set IP manually on my laptop to 192.168.2.5 - no access to the network.
I use dynamic and static leases with other devices on my network and I have 0 problems (though I'd have to ensure if I set static IP only on the router side or maybe the device's side too). For some reason - my laptop is the only one to have issues and only with this one IP address.
I am 100% sure there are no other devices having/using that IP (192.168.2.5).
/etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
option dhcp_match 'set:efi64-2,60,PXEClient:Arch:00009'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
list dhcp_option '6,192.168.1.6'
list ra_flags 'none'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
list ra_flags 'none'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'VLAN2'
option interface 'VLAN2'
option start '100'
option limit '150'
option leasetime '12h'
list ra_flags 'none'
config host
option name 'disk'
option dns '1'
option mac '6C:72:20:02:BC:90'
option ip '192.168.1.5'
config host
option name 'netgear'
option dns '1'
option mac '80:CC:9C:8B:CD:FC'
option ip '192.168.1.112'
config host
option name 'AccessPoint'
option dns '1'
option ip '192.168.2.2'
option mac '40:31:3C:D1:1F:EC'
config host
option name 'omv'
option dns '1'
option mac '8E:F2:64:AD:14:AD'
option ip '192.168.1.4'
config host
option mac '64:5D:86:4D:78:DF'
option dns '1'
option name 'LaptopAsus'
option ip '192.168.2.7'
part of a syslog (couldn't paste all - too many characters)... 192.168.2.7 on the bottom is the IP of a usb-wifi dongle I used to connect just in case.
Sun Aug 14 12:06:24 2022 daemon.notice netifd: wan (2702): udhcpc: sending select for 192.168.3.2
Sun Aug 14 12:06:24 2022 daemon.notice netifd: wan (2702): udhcpc: lease of 192.168.3.2 obtained, lease time 4294967295
Sun Aug 14 12:06:24 2022 daemon.notice netifd: Interface 'wan' is now up
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain test
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain onion
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain localhost
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain local
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain invalid
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain bind
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using only locally-known addresses for domain lan
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using nameserver 192.168.1.6#53
Sun Aug 14 12:06:24 2022 daemon.info dnsmasq[2191]: using nameserver 192.168.1.6#53
Sun Aug 14 12:06:25 2022 daemon.err modprobe: failed to find a module named act_ipt
Sun Aug 14 12:06:25 2022 daemon.err modprobe: failed to find a module named act_ipt
Sun Aug 14 12:06:25 2022 user.notice firewall: Reloading firewall due to ifup of wan (br-lan.5)
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[2191]: exiting on receipt of SIGTERM
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: Connected to system UBus
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: started, version 2.85 cachesize 150
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: DNS service limited to local subnets
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: UBus support enabled: connected to system bus
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq-dhcp[5665]: DHCP, IP range 192.168.2.100 -- 192.168.2.249, lease time 12h
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq-dhcp[5665]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain test
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain onion
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain localhost
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain local
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain invalid
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain bind
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain lan
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain test
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain onion
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain localhost
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain local
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain invalid
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain bind
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using only locally-known addresses for domain lan
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using nameserver 192.168.1.6#53
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: using nameserver 192.168.1.6#53
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: read /etc/hosts - 4 addresses
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq[5665]: read /tmp/hosts/dhcp.cfg01411c - 7 addresses
Sun Aug 14 12:06:29 2022 daemon.info dnsmasq-dhcp[5665]: read /etc/ethers - 0 addresses
Sun Aug 14 12:06:29 2022 daemon.err upsmon[3664]: 6.817060 Signal 15: exiting
Sun Aug 14 12:06:29 2022 daemon.err upsmon[3664]: 6.817193 upsmon parent: read
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: kill: No such process
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: 0.000000 Using power down flag file /var/run/killpower
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: 0.000044 UPS: ups@192.168.1.4 (slave) (power value 1)
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: 0.000076 debug level is '1'
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: 0.000271 Trying to connect to UPS [ups@192.168.1.4]
Sun Aug 14 12:06:29 2022 daemon.err upsmon[5766]: 0.001861 Logged into UPS ups@192.168.1.4
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.159 64:5d:86:4d:78:df
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPNAK(br-lan.2) 192.168.2.159 64:5d:86:4d:78:df static lease available
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPDISCOVER(br-lan.2) 64:5d:86:4d:78:df
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPOFFER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:03 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:07:19 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:19 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:07:25 2022 daemon.info dnsmasq-dhcp[5665]: DHCPDISCOVER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:25 2022 daemon.info dnsmasq-dhcp[5665]: DHCPOFFER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:25 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:07:25 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:08:48 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:08:48 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:08:51 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:08:51 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:08:54 2022 daemon.info dnsmasq-dhcp[5665]: DHCPRELEASE(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:09:24 2022 daemon.info dnsmasq-dhcp[5665]: DHCPDISCOVER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:09:24 2022 daemon.info dnsmasq-dhcp[5665]: DHCPOFFER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:09:24 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:09:24 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:10:09 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:10:09 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:10:15 2022 daemon.info dnsmasq-dhcp[5665]: DHCPDISCOVER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:10:15 2022 daemon.info dnsmasq-dhcp[5665]: DHCPOFFER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:10:15 2022 daemon.info dnsmasq-dhcp[5665]: DHCPREQUEST(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:10:15 2022 daemon.info dnsmasq-dhcp[5665]: DHCPACK(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df Laptop-Asus
Sun Aug 14 12:10:49 2022 daemon.info dnsmasq-dhcp[5665]: DHCPRELEASE(br-lan.2) 192.168.2.137 e4:be:ed:2a:ad:9d unknown lease
Sun Aug 14 12:12:17 2022 daemon.info dnsmasq-dhcp[5665]: DHCPRELEASE(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:12:18 2022 daemon.info dnsmasq-dhcp[5665]: DHCPDISCOVER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:12:18 2022 daemon.info dnsmasq-dhcp[5665]: DHCPOFFER(br-lan.2) 192.168.2.5 64:5d:86:4d:78:df
Sun Aug 14 12:12:26 2022 user.info : luci: accepted login on /admin/system/reboot for root from 192.168.2.7