I encountered a problem yesterday where my IP was not changing, I should have gotten a new lease from the DHCP server.
I needed to find which server was giving me my leases, I didn’t know where this information was stored.
Anyway, its here!
1 |
cat /var/lib/dhclient/dhclient-xxxxx-eno1.lease |
It should give you information like this, look around because different flavors of Linux will store the lease in a different location.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
default-duid "xxxxxxxxxxxxxxxxxxxxx"; lease { interface "eno1"; fixed-address xxx.xxx.xxx.xxx; option subnet-mask 255.255.254.0; option dhcp-lease-time 43200; option routers xxx.xxx.xxx.xxx; option dhcp-message-type 5; option dhcp-server-identifier xxx.xxx.xxx.xxx; option domain-name-servers xxx.xxx.xxx.xxx option dhcp-renewal-time 21600; option dhcp-rebinding-time 37800; option domain-name "techinterchange.com.au"; renew 1 2018/08/27 08:10:34; rebind 1 2018/08/27 13:17:27; expire 1 2018/08/27 14:47:27; } |