Accessing an IP block in Linux

Posted on 2014-07-16
Last Modified: 2014-07-29
I have recently learnt through the experts on this site that telnet could be used to check access to individual ip addresses.  But what about IP blocks as those defined here:

Is there a shortcut command to see if the block is accessible?
Question by:onaled777
    LVL 82

    Accepted Solution

    Not really because machines respond to requests but 'blocks' is just a description, not an actual machine.  You could try to access a particular machine / IP address in that block.  Note that some of those are not web servers and may not respond to a telnet connection at all.
    LVL 13

    Assisted Solution

    first off.. telnet is not the good way just to test the IP.. it is generally being used for checking whether the port is opened or not apart from this to check the whole block/subnet of IP you can use #ping -b <nw address> this will broadcast the packets and will provide you the list of IP in use. Else use any IP discovery software (many freebies) available on net for this purpose.

    if you are having idea in writing shell script just use for-loop to ping the IP in subnet which will give you list of alive or dead IPs in your network.

    Checking every single machine is pathetic and time consuming.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now