cidr2ip

Small and simple program for converting a CIDR into a netmask
git clone git://git.noxz.tech/cidr2ip
Log | Files | Refs | README | LICENSE

README.md (488B)


      1 cidr2ip
      2 ======
      3 `cidr2ip` is a small and simple program for converting a CIDR into ip (mask).
      4 
      5 Installation
      6 ------------
      7 Edit config.mk to match your local setup (cidr2ip is installed into the
      8 /usr/local namespace by default), then simply enter the following command to
      9 install (if necessary as root):
     10 
     11     make clean install
     12 
     13 Example usage of cidr2ip
     14 ------------------------
     15 Print a complete CIDR to ip conversion table
     16 
     17     for i in $(seq 1 32); do printf '\\%-5s' $i; cidr2ip $i;done
     18