Linux.com

Home Learn Linux Linux Answers Networking Suppose there are some dhcp configured servers and many clients, how can a client know which server provided the ip address?
Answers
  • The address of the DHCP server is maintained in a file called dhclient.leases. on ubuntu, you will find this file in directory /var/lib/dhclient, but other distros may put it elsewhere (I believe debian puts it in dhclient3)
    So the ip address is easy to find by looking into the file and searching for dhcp-server-identifier, or by entering the command:
    grep dhcp-server-identifier /var/lib/dhcp/dhclient.leases

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

    Answered by herman
    7 months ago
    0 1
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Networking

Upcoming Training Courses

  1. LF320 Linux Kernel Internals and Debugging
    13 May » 17 May - Virtual
    Details
  2. LF425 Linux Performance Tuning Crash Course
    13 May » 13 May - New York
    Details
  3. LF331 Developing Linux Device Drivers
    03 Jun » 07 Jun - Virtual
    Details

View All Upcoming Courses

Community Answers - Search

30 Linux Kernel Developers in 30 Weeks

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board