[lug] Calculating network addresses

Gary Masters gmasters at dotsplat.org
Sun Mar 26 17:33:26 MST 2000


On Wed Mar 08, 2000 at 09:27:14 -0700, Ian Hall-Beyer wrote:
> 
> Does anyone hava  quick and dirty alogorithm for extrapolating a network
> address from an IP and subnet mask, preferably one that can be implemented
> in bash?
> 

Recent versions of RedHat come with a utility called ipcalc.  If
all you need is a tool, I'd use ipcalc.  If you need an algorithm,
I'd check the source code for ipcalc.

-- 
  Gary Masters
  gmasters at dotsplat.org




More information about the LUG mailing list