pipcalc homepage |
|
Introduction
If you're still reading, maybe it's because you want to see some sample output. We can do that:
The -v option just adds the hostname to the output, via your system's configured host resolution mechanism. Without it you get the same output, sans hostname, saving a potential network time-out upon looking up the IP address. You could specify the netmask instead of CIDR notation, if you like. And if you prefer, we can also have our output Red Hat style (suitable for setting variables in init scripts):
Note that unlike the Red Hat version, all that stuff still prints even though we didn't specify a netmask or prefix with our IP address. Red Hat's ipcalc just gives you an error. Sigh... Never could figure out why it should be required. Those things have standard defaults originating from the original class-based networks. Get it here:
|