Pejman Moghadam / Slackware

Slackware 12.0 - Installing ipcalc

Public domain


Installation

cd /usr/src
wget http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz
tar -zxf ipcalc-0.41.tar.gz
cd ipcalc-0.41
cp ipcalc /usr/local/sbin/

Usage

# ipcalc -n 192.168.1.10 255.255.255.248
    Address:   192.168.1.10         11000000.10101000.00000001.00001 010
    Netmask:   255.255.255.248 = 29 11111111.11111111.11111111.11111 000
    Wildcard:  0.0.0.7              00000000.00000000.00000000.00000 111
    =>
    Network:   192.168.1.8/29       11000000.10101000.00000001.00001 000
    HostMin:   192.168.1.9          11000000.10101000.00000001.00001 001
    HostMax:   192.168.1.14         11000000.10101000.00000001.00001 110
    Broadcast: 192.168.1.15         11000000.10101000.00000001.00001 111
    Hosts/Net: 6                     Class C, Private Internet

BY: Pejman Moghadam
TAG: ipcalc
DATE: 2007-10-31 17:22:53


Pejman Moghadam / Slackware [ TXT ]