ftp://ftp.ocs.com.au/pub/ipcalc.pl.gz Perl 5
ftp://ftp.ocs.com.au/pub/ipcalc.tcl.gz Tcl/Tk 8
The Tcl/Tk version is more of a demonstration and training tool. The
Perl version is text based. Examples :-
ipcalc.pl 223.43.79.127
IP address 223 . 43 . 79 . 127 / 24 223.43.79.127/24
Netmask bits 11111111 11111111 11111111 00000000
Netmask bytes 255 . 255 . 255 . 0 255.255.255.0
Address bits 11011111 00101011 01001111 01111111
Network 223 . 43 . 79 . 0 223.43.79.0
Broadcast 223 . 43 . 79 . 255 223.43.79.255
First Host 223 . 43 . 79 . 1 223.43.79.1
Last Host 223 . 43 . 79 . 254 223.43.79.254
Total Hosts 254
PTR 127.79.43.223.in-addr.arpa
IP Address (hex) DF2B4F7F
ipcalc.pl 223.43.79.127/26
IP address 223 . 43 . 79 . 127 / 26 223.43.79.127/26
Netmask bits 11111111 11111111 11111111 11000000
Netmask bytes 255 . 255 . 255 . 192 255.255.255.192
Address bits 11011111 00101011 01001111 01111111
Network 223 . 43 . 79 . 64 223.43.79.64
Broadcast 223 . 43 . 79 . 127 223.43.79.127
First Host 223 . 43 . 79 . 65 223.43.79.65
Last Host 223 . 43 . 79 . 126 223.43.79.126
Total Hosts 62
ipcalc.pl 223.43.79.127/255.255.128.0
IP address 223 . 43 . 79 . 127 / 17 223.43.79.127/17
Netmask bits 11111111 11111111 10000000 00000000
Netmask bytes 255 . 255 . 128 . 0 255.255.128.0
Address bits 11011111 00101011 01001111 01111111
Network 223 . 43 . 0 . 0 223.43.0.0
Broadcast 223 . 43 . 127 . 255 223.43.127.255
First Host 223 . 43 . 0 . 1 223.43.0.1
Last Host 223 . 43 . 127 . 254 223.43.127.254
Total Hosts 32766
You cannot see in this mail but the network part of the address bits
are highlighted.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html