Skip to content
/ ip2cidr Public

Converts IPADDRESS to CIDR, or returns CIDR if already a valid one

License

Notifications You must be signed in to change notification settings

z0noxz/ip2cidr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip2cidr

ip2cidr is a small and simple program for converting an ip address (mask) into a CIDR, or returning an already valid CIDR.

Installation

Edit config.mk to match your local setup (ip2cidr is installed into the /usr/local namespace by default), then simply enter the following command to install (if necessary as root):

make clean install

Example usage of ip2cidr

Allow user to enter a subnet mask as either a CIDR or as an ip address:

read -p "enter subnet mask: " output; output=$(ip2cidr "$output")

About

Converts IPADDRESS to CIDR, or returns CIDR if already a valid one

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published