Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, Im a newbie to linux networking, can anyone tell me what is the command in linux to know the ipaddresses that are assigned by DHCP server. Thanks in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    85

    How to know what address that are assigned by DHCP server


    Hi all, Im a newbie to linux networking, can anyone tell me what is the command in linux to know the ipaddresses that are assigned by DHCP server.

    Thanks in advance

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    ifconfig is probably what you're looking for.

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    85
    Thanks for the reply... reed
    Ya your are right.. it is the command to know the address at the client side.. but Im looking for a command from Server side.. that is.. I want to know the list of IP address that a Server has assigned to the clients that are connected to it..


    Thanks in advance

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Hmm, that I'm not sure. Never ran a dhcp server.

    Looks like addresses should be written to /var/db/dhcpd_leases.

  5. #5
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    I don't know of a specific command, but you can look at dhcpd.conf (assuming you are using dhcpd). The ip address the server can give out are listed in the "range" entry e.g. on my local lan
    Code:
    range 192.168.1.150 192.168.1.200;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •