For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > ipcalc

ipcalc

Created by dave. Last edited by dave, 11 years and 178 days ago. Viewed 3,204 times. #1
[edit] [rdf]
labels
attachments

Instead of subnet, use ipcalc.

# ipcalc -mpnb 10.0.0.0 255.255.240.0
NETMASK=255.255.240.0
PREFIX=20
BROADCAST=10.0.15.255
NETWORK=10.0.0.0
# ipcalc -mpnb 10.0.0.0 255.255.255.0
NETMASK=255.255.255.0
PREFIX=24
BROADCAST=10.0.0.255
NETWORK=10.0.0.0

(The article title probably confused everyone except me. subnet is a perl script I wrote which basically does the same thing, although it has a few additional features. ipcalc can be expected on practically any modern RedHat flavored distro these days, while subnet is less frequently available.)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt