Skip to content

Calculate IP Prefix from Range #6

@grmrgecko

Description

@grmrgecko

First, thank you so much for making this utility, it is awesome for what it does.

I would love to see the ability to calculate prefixes based on an IP range. I have used ipcalc (http://jodies.de/ipcalc) before finding this, and I found its range calculator extremely useful for finding out the prefix to an IP address range I found in whois.

Examples:

$ ipcalc 192.168.160.0 - 192.168.175.255
deaggregate 192.168.160.0 - 192.168.175.255
192.168.160.0/20
$ ipcalc 192.168.160.0 - 192.168.173.255
deaggregate 192.168.160.0 - 192.168.173.255
192.168.160.0/21
192.168.168.0/22
192.168.172.0/23

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions