Convert CDIR notation to IP range

John Nichel john at kegworks.com
Thu Jul 29 12:58:03 UTC 2004


Rick Stevens wrote:
> I know I'm late, but did you try the dread "ipcalc" program that comes
> with Linux?.  E.g.
> 
>     [root at prophead root]# ipcalc -n 192.168.0.71/26
>     NETWORK=192.168.0.64
> 
> That's your first address (the network)
> 
>     [root at prophead root]# ipcalc -b 192.168.0.71/26
>     BROADCAST=192.168.0.127
> 
> And that's the last address (the broadcast).  So, 192.168.0.71/26
> covers 192.168.0.64 through 192.168.0.127, inclusive.  Not too hard, eh?
> "man ipcalc" for more details.

Perfect.  Thanks!

-- 
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john at kegworks.com





More information about the fedora-list mailing list