Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piger/netmask
Simple utility to work with network ranges.
https://github.com/piger/netmask
command-line netmask network
Last synced: about 8 hours ago
JSON representation
Simple utility to work with network ranges.
- Host: GitHub
- URL: https://github.com/piger/netmask
- Owner: piger
- License: bsd-2-clause
- Created: 2022-03-09T10:51:26.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T18:53:41.000Z (over 2 years ago)
- Last Synced: 2025-01-16T13:42:35.879Z (about 18 hours ago)
- Topics: command-line, netmask, network
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netmask
A very simple utility to work with CIDR ranges; it can list all IP addresses in a range or check if an address is part of a range.
## Usage
To list all addresses in a range:
```
netmask 192.168.0.0/24
```To check if an address is part of a range:
```
netmask 192.168.0.0/24 192.168.0.1
```The exit code will be `0` if the address is part of the range and `1` if it isn't.