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?
  • 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. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
  2. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual
  3. LFS520 OpenStack Cloud Architecture and Deployment
    12 Jan » 15 Jan - Virtual

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