Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanis2000/cidr-to-iplist
Convert a list of CIDR subnets into a list of IP addresses
https://github.com/tanis2000/cidr-to-iplist
cli ipv4 subnet-calculator
Last synced: 3 months ago
JSON representation
Convert a list of CIDR subnets into a list of IP addresses
- Host: GitHub
- URL: https://github.com/tanis2000/cidr-to-iplist
- Owner: tanis2000
- Created: 2019-07-30T09:21:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T13:12:49.000Z (over 5 years ago)
- Last Synced: 2024-06-03T07:34:33.940Z (5 months ago)
- Topics: cli, ipv4, subnet-calculator
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert a list of CIDR subnets into a list of IP addresses
This is a simple CLI tool to convert a list of network subnets in [CIDR format](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) into a list of IP addresses.
The only input is the filename containing the list of subnets separated by linefeeds.
An example of a list of subnets:
```txt
172.16.0.0/27
13.69.104.0/26
```Here's how to run it:
```sh
cidr-to-iplist ./iplist.txt
```The application will print the list of IP addresses to the standard output. If you need to save that in a file, just redirect it to the filename like this:
```sh
cidr-to-iplist ./iplist.txt > ips.txt
```