Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.