[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Accessing an IP block in Linux

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:

http://bgp.he.net/AS15169#_prefixes

http://bgp.he.net/AS15169#_prefixes6

Is there a shortcut command to see if the block is accessible?
0
onaled777
Asked:
onaled777
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
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.
0
 
SandyCommented:
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.

TY/SA
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now