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. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details
  3. LFS430 Linux Enterprise Automation
    13 Oct » 16 Oct - Virtual
    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