I have a CentOS 7.4 minimal install, command line only system which I am trying to determine what DHCP server my system received it's IP address from. I have tried:
- ip address
- ifconfig
- cat /etc/resolv.conf <-- shows DNS, not DHCP
- dhclient ens160 <-- VMware NIC name; dhclient(1348) is already running - exiting
- ls /var/lib/dhclient <-- directory is empty
- cat /var/lib/dhcp/dhclient.leases <-- /var/lib/dhcp does not exist
- dhcpdump <-- command not found
I assigned a long-lease reservation from one of our DHCP servers but later discovered the reservation did not propagate to the other DHCP servers so it began the chase for which one responded.
In the mean time I have searched each DHCP server until I found the lease; I just don't know how to ask the system itself.
Thank you for your time regarding the matter.