Tapio Lehtonen <talemanp...@gmail.com> writes: > This is tail from /var/lib/dhcp/dhclient.leases > lease { > interface "eth0"; > fixed-address 192.168.250.41; > option subnet-mask 255.255.255.0; > option routers 192.168.250.6; > option dhcp-lease-time 3600; > option dhcp-message-type 5; > option domain-name-servers 192.168.250.2,192.168.250.10; > option dhcp-server-identifier 192.168.250.2; > option domain-name "office.mydomain.fi"; > renew 2 2021/01/05 14:26:38; > rebind 2 2021/01/05 14:52:52; > expire 2 2021/01/05 15:00:22; > }
Could it be there are other leases in that file which are still valid? Or other files? For example, my Debian 9 box has these files: -rw-r--r-- 1 root root 1046 Jan 7 09:44 /var/lib/dhcp/dhclient.eth0.leases -rw-r--r-- 1 root root 525 Feb 10 2013 /var/lib/dhcp/dhclient.eth1.leases -rw-r--r-- 1 root root 0 Aug 23 2018 /var/lib/dhcp/dhclient.leases So for me the valid lease is actually in /var/lib/dhcp/dhclient.eth0.leases and dhclient.leases is empty and dhclient.eth1.leases is a blast from the past. I'm not using NetworkManager though. NetworkManager might have its own idea about gateway address.