Custom Search

Tuesday, September 8, 2015

How do I find DHCP Server IP Address

1)
saju@ubuntu:~$ cd /var/lib/dhcp/
saju@ubuntu:/var/lib/dhcp$

2)
saju@ubuntu:/var/lib/dhcp$ grep -r dhcp-server-identifier .
./dhclient.eth2.leases:  option dhcp-server-identifier 192.168.56.100;
./dhclient.eth1.leases:  option dhcp-server-identifier 192.168.56.100;
./dhclient.eth0.leases:  option dhcp-server-identifier 10.0.2.2;
./dhclient.eth0.leases:  option dhcp-server-identifier 10.0.2.2;
saju@ubuntu:/var/lib/dhcp$

* Result is from VirtualBox VM
* 10.0.2.2 is the IP of VirtualBox DHCP Server.



No comments:

Post a Comment