noxz.tech/software/ip2cidr/index.www_bak
1ip2cidr
2=======
3usage: **ip2cidr** <u>ip</u>
4
5ip2cidr is a small and simple program for converting an ip address (mask)
6into a CIDR, or returning an already valid CIDR.
7
8Installation
9------------
10Edit config.mk to match your local setup (ip2cidr is installed into the
11*/usr/local* namespace by default), then simply enter the following command to
12install (if necessary as root):
13
14 make clean install
15
16Example usage of ip2cidr
17------------------------
18Allow user to enter a subnet mask as either a CIDR or as an ip address:
19
20 read -p "enter subnet mask: " output; output=$(ip2cidr "$output")
21
22get source [here](//noxz.tech/git/ip2cidr.git).