date: 2010-12-30 10:32:10+00:00

Find IP ranges from an ASN

categories: - Networks

$ whois 217.136.0.0 | grep origin: origin: AS5432

$ whois -h whois.ripe.net -i origin -T route AS5432 | grep -w "route:" | awk '{print $NF}' |sort -n 46.178.0.0/15 62.4.128.0/17 80.200.0.0/15 81.169.0.0/17 81.240.0.0/14 81.244.0.0/14 87.64.0.0/14 91.176.0.0/14 91.180.0.0/14 91.198.203.0/24 92.48.128.0/18 109.128.0.0/14 109.132.0.0/14 109.136.0.0/14 109.140.0.0/14 125.213.216.0/22 138.203.0.0/16 161.195.143.0/24 165.26.216.0/21 170.252.120.0/24 178.144.0.0/15 188.5.0.0/16 188.95.86.0/24 192.133.103.0/24 192.23.170.0/24 193.104.159.0/24 193.106.227.0/24 193.110.92.0/24 193.178.174.0/24 193.221.87.0/24 193.221.89.0/24 193.235.106.0/24 193.239.113.0/24 193.41.158.0/23 193.53.200.0/21 193.53.208.0/20 193.53.224.0/20 193.53.238.0/24 193.53.240.0/22 193.53.242.0/24 193.53.244.0/24 193.53.40.0/24 193.53.8.0/24 193.58.231.0/24 194.0.173.0/24 194.0.174.0/23 194.0.174.0/24 194.0.175.0/24 194.41.15.0/24 194.41.96.0/20 194.78.0.0/16 194.78.231.0/24 195.13.0.0/19 195.238.0.0/19 206.193.172.0/24 213.181.32.0/19 217.136.0.0/16

Related : Find IP ranges for a country