Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get IP's in Autonomous System Number (ASN)

I've tried getting the list of IP's under an ASN number for example AS8167 however I am having no such luck. I have seen that team cymru have an IP to ASN, however that is the opposite of what I actually need.

like image 402
user1372896 Avatar asked Nov 30 '12 05:11

user1372896


People also ask

Is an ASN an IP address?

Autonomous System Numbers (ASNs)An IP prefix is a list of IP addresses that can be reached from that ISP's network. The network operators must have an ASN to control routing within their networks and to exchange routing information with other ISPs.

What is ASN IP lookup?

ASN Lookup An AS is a connected group of one or more IP prefixes run by one or more network operators which has a SINGLE and CLEARLY DEFINED routing policy. This number is used in both the exchange of exterior routing information (between neighboring ASes), and as an identifier of the AS itself.

How do I get an ASN number for my ISP?

To obtain an ASN, you'll have to become a member with RIPE NCC or, alternatively, you can have a sponsoring local internet registry submit the request for you. Note that a new ASN number should only be requested if there is a requirement for a new external routing policy.


1 Answers

RADb has a whois server that provides this functionality. It includes information other than just the IP blocks, so you'll need to grep for those if that's all you're interested in:

$ whois -h whois.radb.net -- '-i origin AS8167' | grep -Eo "([0-9.]+){4}/[0-9]+" | head
189.11.64.0/18
189.31.0.0/16
189.72.128.0/18
189.73.192.0/18
189.74.0.0/18
189.74.64.0/18
189.64.0.0/11
189.0.0.0/11
187.52.192.0/18
187.52.0.0/17
like image 129
Ben Dowling Avatar answered Oct 09 '22 02:10

Ben Dowling