Re: Convert CDIR notation to IP range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rick Stevens wrote:
I know I'm late, but did you try the dread "ipcalc" program that comes
with Linux?.  E.g.

    [root@prophead root]# ipcalc -n 192.168.0.71/26
    NETWORK=192.168.0.64

That's your first address (the network)

    [root@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@xxxxxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux