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
    2 years ago
    0 1
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Networking

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details
  3. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details

View All Upcoming Courses

Community Answers - Search


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