AminetAminet
Search:
84736 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/net/whatmask.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Subnet mask notation conversion tool
Author: carsten.larsen at mail.com (Carsten Larsen)
Type:comm/net
Version:1.2
Architecture:m68k-amigaos
Date:2020-04-10
Download:comm/net/whatmask.lha - View contents
Readme:comm/net/whatmask.readme
Downloads:611

Whatmask is a small CLI program that will help you with network settings.

Whatmask can work in two modes.  The first mode is to invoke Whatmask
with only a subnet mask as the argument. In this mode Whatmask will
echo back the subnet mask in four formats, plus the number of useable
addresses in the range.

To use Whatmask in its second mode execute Whatmask with any ip address
within the subnet, followed by a slash ('/'), followed by the subnet
mask in any format. (e.g. 192.168.0.23/255.255.255.224, or
192.168.0.23/27) Put no spaces in the argument.

Examples of how Whatmask works:

System:>  whatmask /26

---------------------------------------------
        TCP/IP SUBNET MASK EQUIVALENTS
---------------------------------------------
CIDR = .....................: /26
Netmask = ..................: 255.255.255.192
Netmask (hex) = ............: 0xffffffc0
Wildcard Bits = ............: 0.0.0.63
Usable IP Addresses = ......: 62

System:>  whatmask 255.255.192.0

---------------------------------------------
        TCP/IP SUBNET MASK EQUIVALENTS
---------------------------------------------
CIDR = .....................: /18
Netmask = ..................: 255.255.192.0
Netmask (hex) = ............: 0xffffc000
Wildcard Bits = ............: 0.0.63.255
Usable IP Addresses = ......: 16,382

System:>  whatmask 0xffffffe0

---------------------------------------------
        TCP/IP SUBNET MASK EQUIVALENTS
---------------------------------------------
CIDR = .....................: /27
Netmask = ..................: 255.255.255.224
Netmask (hex) = ............: 0xffffffe0
Wildcard Bits = ............: 0.0.0.31
Usable IP Addresses = ......: 30

System:>  whatmask 0.0.0.31

---------------------------------------------
        TCP/IP SUBNET MASK EQUIVALENTS
---------------------------------------------
CIDR = .....................: /27
Netmask = ..................: 255.255.255.224
Netmask (hex) = ............: 0xffffffe0
Wildcard Bits = ............: 0.0.0.31
Usable IP Addresses = ......: 30

System:>  whatmask 192.168.165.23/19

------------------------------------------------
                TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.168.165.23
CIDR = ........................: /19
Netmask = .....................: 255.255.224.0
Netmask (hex) = ...............: 0xffffe000
Wildcard Bits = ...............: 0.0.31.255
------------------------------------------------
Network Address = .............: 192.168.160.0
Broadcast Address = ...........: 192.168.191.255
Usable IP Addresses = .........: 8,190
First Usable IP Address = .....: 192.168.160.1
Last Usable IP Address = ......: 192.168.191.254

System:>  whatmask 192.168.0.13/255.255.255.0

------------------------------------------------
                TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.168.0.13
CIDR = ........................: /24
Netmask = .....................: 255.255.255.0
Netmask (hex) = ...............: 0xffffff00
Wildcard Bits = ...............: 0.0.0.255
------------------------------------------------
Network Address = .............: 192.168.0.0
Broadcast Address = ...........: 192.168.0.255
Usable IP Addresses = .........: 254
First Usable IP Address = .....: 192.168.0.1
Last Usable IP Address = ......: 192.168.0.254

System:>  whatmask 192.168.0.113/0xffffffe0

------------------------------------------------
                TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.168.0.113
CIDR = ........................: /27
Netmask = .....................: 255.255.255.224
Netmask (hex) = ...............: 0xffffffe0
Wildcard Bits = ...............: 0.0.0.31
------------------------------------------------
Network Address = .............: 192.168.0.96
Broadcast Address = ...........: 192.168.0.127
Usable IP Addresses = .........: 30
First Usable IP Address = .....: 192.168.0.97
Last Usable IP Address = ......: 192.168.0.126

System:>  whatmask 192.168.0.169/0.0.0.127

------------------------------------------------
                TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.168.0.169
CIDR = ........................: /25
Netmask = .....................: 255.255.255.128
Netmask (hex) = ...............: 0xffffff80
Wildcard Bits = ...............: 0.0.0.127
------------------------------------------------
Network Address = .............: 192.168.0.128
Broadcast Address = ...........: 192.168.0.255
Usable IP Addresses = .........: 126
First Usable IP Address = .....: 192.168.0.129
Last Usable IP Address = ......: 192.168.0.254


Contents of comm/net/whatmask.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                 116954  116954 100.0% -lh0- 29da Apr  9 22:40 whatmask/source.lha
[Amiga]                  26165   50504  51.8% -lh5- 1836 Apr  9 22:30 whatmask/whatmask
[Amiga]                   1837    8478  21.7% -lh5- b3d6 Apr  9 22:35 whatmask/whatmask.help
[Amiga]                    940    4963  18.9% -lh5- 597f Apr  9 22:54 whatmask/whatmask.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files  145896  180899  80.7%            Apr  9 23:01
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>