Re: seeing which IP is your DHCP server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Rogelio Bastardo wrote:
If I am on a CentOS box (or any other nix box, I guess), what is the
easiest way to easily see the dhcp server?  (Like in MS Windows, one
can run "ipconfig /all" and see which IP is the DHCP server)

For CentOS 5, the command:

     grep dhcp-server-identifier /var/lib/dhclient/dhclient-eth0.leases

or for CentOS 4, the command:

     grep dhcp-server-identifier /var/lib/dhcp/dhclient-eth0.leases

will list the dhcp server(s) that the system recently got its IP address from. The most recent dhcp renewal should be at the bottom of the list.

Erik
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux