Results 1 to 4 of 4

Thread: How to trace your dhcp server ip address

  1. #1
    Senior Member
    Join Date
    Jul 2009
    Posts
    138
    Thanks
    67
    Thanked 4 Times in 3 Posts
    Rep Power
    6

    Default How to trace your dhcp server ip address

    Hello all,

    I got a network with isp router, wireless access point, servers and 24 port switch. All of them got dhcp server running and i need to find out who is giving out IP address to clients?
    English not my first language. If not understood my question ask me.

  2. #2
    Senior Member ananth_ak's Avatar
    Join Date
    May 2010
    Location
    Vault 101
    Posts
    192
    Thanks
    23
    Thanked 19 Times in 17 Posts
    Rep Power
    7

    Default

    run the following command on one your client systems

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

  3. The Following User Says Thank You to ananth_ak For This Useful Post:

    chinalinix (18th April 2011)

  4. #3
    Senior Member
    Join Date
    Jul 2009
    Posts
    138
    Thanks
    67
    Thanked 4 Times in 3 Posts
    Rep Power
    6

    Default

    Quote Originally Posted by ananth_ak View Post
    run the following command on one your client systems

    Code:
    grep dhcp-server-identifier /var/lib/dhclient/dhclient.leases
    it worked but with different file in /var/lib/dhcp3/ directory. I got eth0 and wlan0 files in those directory and it gave me ip of dhcp server. thank u!
    English not my first language. If not understood my question ask me.

  5. #4
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    Default

    FYI, you can also use the tcpdump command as follows:
    Code:
     tcpdump -i eth0 port 67 or port 68
    And get an IP using dhcp
    Code:
    dhclient eth0
    And there is dhcpdump too - dhcpdump: Monitor DHCP Traffic For Debugging Purpose

    /Closed.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to make an ipv6 based DHCP server?
    By ashu.wifi in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 21st May 2009, 02:55 AM
  2. How set up my solaris 10 box to get ip from DHCP server?
    By ashu.wifi in forum Solaris/OpenSolaris
    Replies: 3
    Last Post: 9th September 2008, 10:11 PM
  3. single DHCP server with multiple VLAN's
    By frank in forum Computer Networking and Internet/broadband
    Replies: 2
    Last Post: 7th December 2007, 01:38 PM
  4. airtel dns server ip address
    By sweta in forum Windows Xp/2000/2003 server administration
    Replies: 2
    Last Post: 13th October 2006, 02:11 AM
  5. DHCP server
    By aindusekhar in forum Linux software
    Replies: 1
    Last Post: 13th September 2005, 07:29 PM

Tags for this Thread

Posting Permissions

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