Interface: IPv4Subnet
An IPv4 subnet, given by IPv4.parseCIDR and IPv4.parseSubnet. The addresses are in dotted decimal notation ('192.168.0.1').
Properties
broadcastAddress
broadcastAddress:
string
The broadcast address, the last address of the subnet (its host bits one); '' for a /31 and a /32.
cidrMask
cidrMask:
number
The prefix length, from 0 to 32 (24 for /24).
firstHost
firstHost:
string
The first host address: the one after the network address, or the first address of a /31 or a /32.
ipCount
ipCount:
number
The number of addresses in the subnet, the network and broadcast addresses included: 2 to the power of 32 - cidrMask (256 for a /24).
lastHost
lastHost:
string
The last host address: the one before the broadcast address, or the last address of a /31 or a /32.
networkAddress
networkAddress:
string
The network address, the first address of the subnet (its host bits zero); '' for a /31 and a /32.
subnetMask
subnetMask:
string
The subnet mask of the prefix length ('255.255.255.0' for a /24).
usableCount
usableCount:
number
The number of host addresses: ipCount - 2, or ipCount for a /31 (a point-to-point link) and a /32 (a single host), which have no network nor broadcast address.