For another cli based IP address utility check out IPinfo.io's CLI: <a href="https://github.com/ipinfo/cli" rel="nofollow">https://github.com/ipinfo/cli</a><p>It doesn't currently support calculations, but it does support conversion of start-end ranges to CIDRs (via `range2cidr` and `cidr2range`) and `grepip`. If you just want to get details for an IP it's gives a great overview, and supports bulk lookup too:<p><pre><code> $ ipinfo 8.8.8.8
Core
- IP 8.8.8.8
- Anycast true
- Hostname dns.google
- City Mountain View
- Region California
- Country United States (US)
- Location 37.4056,-122.0775
- Organization AS15169 Google LLC
- Postal 94043
- Timezone America/Los_Angeles
ASN
- ID AS15169
- Name Google LLC
- Domain google.com
- Route 8.8.8.0/24
- Type business
Company
- Name Google LLC
- Domain google.com
- Type business
Privacy
- VPN false
- Proxy false
- Tor false
- Relay false
- Hosting false
- Service
Abuse
- Address US, CA, Mountain View, 1600 Amphitheatre Parkway, 94043
- Country United States (US)
- Email network-abuse@google.com
- Name Abuse
- Network 8.8.8.0/24
- Phone +1-650-253-0000</code></pre>