I am on a server, whoose network is set statically:
iface eth0 inet static
How can I, from the commandline, pretend I am DHCP client, and ask DHCP server for network info?
I don't actually want to change the network settings, but I want to see what DHCP info the server would send back.
Specifically, I have nameservers set statically in
/etc/resolv.conf and they don't work. I want to see what nameservers the DHCP server would send me, if I set my interface dynamically
dhcping but that does not really work. I don't know the IUP address of the DHCP server on my network. Without any pareameters:
dhcping -c ciaddr -g giaddr -h chaddr -r -s server -t maxwait -i -v -q
I only know the gateway, but specifying gateway does not work:
dhcping -g 10.1.212.1