Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I`m using arp command to see all interfaces that are up. Is it passible to see not only the list of IP`s and MAC`s that are up but also ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Posts
    20

    resolving host on lan


    Hi
    I`m using arp command to see all interfaces that are up. Is it passible to see not only the list of IP`s and MAC`s that are up but also host names, cause I want to know what IP and MAC are having each person on lan and mostly I refer to host names rather than to IP ? All machines on lan are running mswindows.

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Would adding those hosts to /etc/hosts file help?
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by serz
    Would adding those hosts to /etc/hosts file help?
    as long as it's all static ip that will work out no problems.

    another command u may wanna try would be:
    Code:
    nmap -sP 192.168.0.0
    that will return the ip (and if it's in the /etc/hosts file) the hostname aswell
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  4. #4
    Just Joined!
    Join Date
    Jan 2005
    Posts
    20
    Yes it works.Thanks guys. Now when I run arp -a it gives all info that I need. Of course I need to find Out manualy all Hosts :)

Posting Permissions

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