Differences between revisions 1 and 2
Revision 1 as of 2008-04-13 21:03:59
Size: 798
Editor: CarlNobile
Comment:
Revision 2 as of 2008-08-12 21:24:10
Size: 795
Editor: CarlNobile
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
$ ipcalc 192.168.1.0/24 $ ipcalc 192.168.1.0

I have always needed to come up with things like IP masks, broadcast addresses. This command sure helps a lot.

Lets say you need the info on subnet 192.168.1.0 the command below will give it all to you.

$ ipcalc 192.168.1.0
Address:   192.168.1.0          11000000.10101000.00000001. 00000000
Netmask:   255.255.255.0 = 24   11111111.11111111.11111111. 00000000
Wildcard:  0.0.0.255            00000000.00000000.00000000. 11111111
=>
Network:   192.168.1.0/24       11000000.10101000.00000001. 00000000
HostMin:   192.168.1.1          11000000.10101000.00000001. 00000001
HostMax:   192.168.1.254        11000000.10101000.00000001. 11111110
Broadcast: 192.168.1.255        11000000.10101000.00000001. 11111111
Hosts/Net: 254                   Class C, Private Internet

ipcalc (last edited 2008-08-14 17:55:17 by CarlNobile)