Results 1 to 4 of 4

Thread: Help needed ...

  1. #1
    Join Date
    May 2008
    Location
    Veles, Macedonia
    Posts
    16

    Help needed ...

    Hi to all.

    Does anybody know how can I determine which of the IPs within the network are used or not. I know that this can be archived by pinging each of the ips but there are 256 (192.168.1.0 - 192.168.1.255). I am using CentOS 5.

    Any help on this would be much appreciated.

    Thanks.
    dacho
    Linux Server Administrator

  2. #2
    Join Date
    Dec 2003
    Location
    New Zealand
    Posts
    1,265
    nmap -sP 192.168.1.0/24

    http://www.liamm.com/linux/find-all-...-in-an-network

    I hope this helps out

  3. #3
    you can also use IP scanner from angryziber for gui

  4. #4
    Join Date
    May 2008
    Location
    Veles, Macedonia
    Posts
    16

    Help needed ...

    Thanks for the replies. I found the solution, and just in any case I will paste below if anyone need it in the future:

    nmap -v -sP xxx.yyy.zzz.0/24 | grep "appears to be down" | awk '{print $2}' >> unsuedips-xxx.yyy.zzz

    I hope this solution will help to someone.
    dacho
    Linux Server Administrator

Posting Permissions

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