(42S) IP Address/Subnet Calculator
|
10-25-2019, 03:40 PM
(This post was last modified: 10-25-2019 10:01 PM by Dave Britten.)
Post: #1
|
|||
|
|||
(42S) IP Address/Subnet Calculator
This program performs a few specific IP address/subnet calculations:
1. Convert a subnet mask to the corresponding CIDR suffix, and vice versa (e.g. 255.255.0.0 <-> /16) 2. Calculate the total number of host addresses available for a given subnet mask 3. Determine the network address for a given IP address and subnet mask pair 4. Determine the broadcast address for a given IP address and subnet mask pair Usage XEQ "IPADR" to start the program. All functions are carried out from a single menu. The "ADDR", "MASK", and "CIDR" keys allow for entry or calculation/display of the IP address, subnet mask, or CIDR suffix respectively. These work like typical solver menu keys. When pressed after entering data, they store the value. When pressed without data, they calculate/display the result. The "HOSTS", "NET", and "BCAST" keys calculate (i.e. they are read-only) the total number of host IP addresses available, the network address, and the broadcast address respectively. To enter an IP address or subnet mask, use all four levels of the stack to enter an address. Essentially, you press ENTER instead of putting decimal points between the bytes. T should contain the first byte (0-255), Z the second byte, and so on. The subnet mask and CIDR suffix will be automatically calculated whenever the other is entered. CIDR will only be calculated if all 1 bits in the subnet mask are left-aligned. In cases where the subnet mask is not left-aligned (e.g. 255.0.255.0), CIDR will be shown as 0. Calculating "HOSTS" requires entry of either "MASK" or "CIDR". Calculating "NET" or "BCST" requires entering "ADDR" and either "MASK" or "CIDR". Note that these can still be calculated normally even if you enter a network or broadcast address for "ADDR". You don't have to enter a host address. Examples 1. Calculate the CIDR suffix that corresponds to the subnet mask 255.255.240.0. 255 [ENTER] 255 [ENTER] 240 [ENTER] 0 ["MASK"] : MASK=255.255.240.0 ["CIDR"] : CIDR=20 2. Calculate the subnet mask for the CIDR suffix /18. 18 ["CIDR"] : CIDR=18 ["MASK"] : MASK=255.255.192.0 3. Determine the number of possible hosts on a network with subnet mask 255.255.254.0. 255 [ENTER] [ENTER] 254 [ENTER] 0 : MASK=255.255.254.0 ["HOSTS"] : HOSTS=510 4. Determine the subnet mask, network address, and broadcast address for a station with IP address 172.16.1.108/22. 172 [ENTER] 16 [ENTER] 1 [ENTER] 108 ["ADDR"] : ADDR=172.16.1.108 22 ["CIDR"] : CIDR=22 ["MASK"] : MASK=255.255.252.0 ["NET"] : NET=172.16.0.0 ["BCST"] : BCAST=172.16.3.255 Program Code Code: 00 { 446-Byte Prgm } IPAddress.zip (Size: 486 bytes / Downloads: 19) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) IP Address/Subnet Calculator - Dave Britten - 10-25-2019 03:40 PM
RE: (42S) IP Address/Subnet Calculator - Luigi Vampa - 10-25-2019, 05:49 PM
RE: (42S) IP Address/Subnet Calculator - cdmackay - 10-25-2019, 08:56 PM
RE: (42S) IP Address/Subnet Calculator - Dave Britten - 10-25-2019, 09:34 PM
RE: (42S) IP Address/Subnet Calculator - rprosperi - 10-25-2019, 09:39 PM
RE: (42S) IP Address/Subnet Calculator - rprosperi - 10-25-2019, 09:47 PM
RE: (42S) IP Address/Subnet Calculator - Dave Britten - 10-25-2019, 10:05 PM
RE: (42S) IP Address/Subnet Calculator - cdmackay - 10-25-2019, 10:27 PM
RE: (42S) IP Address/Subnet Calculator - rprosperi - 10-25-2019, 11:28 PM
RE: (42S) IP Address/Subnet Calculator - Dave Britten - 10-26-2019, 12:03 AM
RE: (42S) IP Address/Subnet Calculator - rprosperi - 10-26-2019, 01:07 AM
RE: (42S) IP Address/Subnet Calculator - Thomas Okken - 10-26-2019, 01:46 AM
|
User(s) browsing this thread: 1 Guest(s)