Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johnmaguire/2cdd9d83af0c4af8cfe1cbd9dbfbf430 to your computer and use it in GitHub Desktop.
Save johnmaguire/2cdd9d83af0c4af8cfe1cbd9dbfbf430 to your computer and use it in GitHub Desktop.
❯ ipcalc 192.168.1.255
Address: 192.168.1.255 11000000.10101000.00000001. 11111111
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 172.9.12.1
Address: 172.9.12.1 10101100.00001001.00001100. 00000001
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111
=>
Network: 172.9.12.0/24 10101100.00001001.00001100. 00000000
HostMin: 172.9.12.1 10101100.00001001.00001100. 00000001
HostMax: 172.9.12.254 10101100.00001001.00001100. 11111110
Broadcast: 172.9.12.255 10101100.00001001.00001100. 11111111
Hosts/Net: 254 Class B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment