iSCSI Subnet Calculator: CIDR, VLSM and IQN Check

This iSCSI subnet calculator works out the address range for any IPv4 network, plans variable-length subnets, splits a network into separate A and B paths and validates iSCSI qualified names. It also gives the range of an IPv6 prefix. Use it when you design the addressing for a storage network or check the names a host and array will present.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • Mask from prefix; network = address AND mask; broadcast = network OR wildcard
  • Usable hosts = 2^(32 - prefix) - 2; /31 has 2 usable (RFC 3021), /32 has 1
  • VLSM: sort by hosts needed (largest first), give each the smallest block that fits, aligned to its own size
  • iSCSI names: iqn.yyyy-mm.reversed-domain[:unique], eui.16hex, naa.16 or 32 hex; ASCII a-z, 0-9, dash, dot, colon only
Assumptions
  • Uppercase letters in an iSCSI name are accepted with a warning, because RFC 3722 maps them to lowercase.
  • Non-ASCII iSCSI names are valid in theory (RFC 3722) but are not checked.
  • The A/B split halves the network you enter into two equal subnets, one per path. Whether to route between them is a design choice; storage paths normally stay separate.
  • IPv6 handling covers prefix arithmetic only (no embedded IPv4 forms).
References

Need a general-purpose subnet calculator with a binary view and subnet splitting for any network? Use the IPv4 subnet calculator.

Planning a full VLSM allocation with already-used blocks, overlap detection, leftover space and CSV export? Use the VLSM calculator.

What is iSCSI subnetting?

iSCSI carries SCSI commands over IP, so a storage network needs the same addressing discipline as any other network. The difference is that storage traffic is sensitive to loss and latency, which makes clean, separate subnets worth the effort.

CIDR and masks

CIDR notation writes a network as an address and a prefix length. A /24 has a 24-bit network part and a mask of 255.255.255.0. The prefix decides how many addresses the subnet holds: 2 to the power of 32 minus the prefix.

Usable hosts

The first address of a subnet is the network address and the last is the broadcast address, so a /24 has 254 usable hosts. Two special cases exist. A /31 has two usable addresses for point-to-point links, as RFC 3021 allows, and a /32 is a single host.

Separate paths

Storage designs normally give each path its own subnet and VLAN, often called A and B, so that the two paths fail independently. Hosts and array ports each have one address in each.

How the iSCSI subnet calculator works

Enter an address and a prefix, or an address and a mask. The tool shows the network, mask, wildcard, broadcast, usable range and host count. If you enter a host address, it works out the subnet it belongs to.

Worked example: a /24

For 192.168.10.0/24 the network is 192.168.10.0, the broadcast is 192.168.10.255, the usable range is 192.168.10.1 to 192.168.10.254 and there are 254 hosts. Splitting it for two paths gives A as 192.168.10.0/25 (hosts .1 to .126) and B as 192.168.10.128/25 (hosts .129 to .254), each with 126 hosts.

Variable-length subnets

VLSM fits several subnets of different sizes into one parent network. The tool sorts your requirements from largest to smallest, gives each the smallest block that holds it and aligns every block to its own size. Take 100 hosts, 50 hosts and 12 array ports in a /24: the first becomes 192.168.10.0/25, the second 192.168.10.128/26 and the third 192.168.10.192/28, which uses 208 of the 256 addresses. If the plan does not fit, the tool says which requirement failed.

Checking iSCSI names

An iSCSI qualified name starts with iqn, then the year and month a domain was registered, then the reversed domain, then an optional colon and a unique string. The eui form carries a 64-bit identifier and the naa form a 64-bit or 128-bit one. RFC 3722 limits ASCII names to lowercase letters, digits, dash, dot and colon, so underscores and spaces are invalid, and a name may not exceed 223 bytes. Uppercase input is mapped to lowercase.

NameResult
iqn.1993-08.org.debian:01:abc123Valid
iqn.2001-13.com.exampleInvalid, month 13
iqn.2001-04.com.example:bad_nameInvalid, underscore
eui.02004567A425678DValid, with a warning about uppercase

IPv6

For IPv6 the tool shows the network, first and last address and the number of addresses in a prefix. A /64 holds 18,446,744,073,709,551,616 addresses, which is why host counts stop mattering and subnet planning shifts to prefix assignment.

Why it matters for SAN and storage admins

Addressing errors in storage networks are quiet and expensive. A host with a mask one bit too wide can see another path’s subnet and send traffic the wrong way. A subnet that is too small blocks growth. The iSCSI subnet calculator makes the boundaries visible before addresses are assigned, and the VLSM plan shows how much of the parent network is left for later.

The name checker saves time at the other end of the connection. A mistyped initiator name is accepted by the host but rejected by the target’s access list, and the symptom is a login failure with little detail. Validating names before you enter them in the array removes a whole class of tickets.

Use it when you:

  • Allocate subnets for iSCSI paths, replication and management.
  • Check that a plan leaves room for more hosts or array ports.
  • Validate initiator and target names before access lists are built.
  • Document the range of every storage subnet.

Best practices and common mistakes

  • Give each path its own subnet and VLAN, and avoid routing between them.
  • Leave room for growth. A subnet sized exactly to today’s hosts forces a renumbering later.
  • Keep the same host numbering on both paths, for example .21 on A and .21 on B, to make logs easy to read.
  • Use lowercase names and a domain you control in the naming authority part.
  • Do not use the network or broadcast address for a device.
  • Record the prefix length with every address. An address without a mask is half a record.

A frequent mistake is to size a subnet for hosts only. Array ports, replication peers and a gateway if you need one all take addresses too.

FAQs

How many usable hosts are in a /24?

254. A /24 has 256 addresses; the network and broadcast addresses are not usable for hosts.

What is a valid iSCSI qualified name?

iqn, a year and month, a reversed domain name, and an optional colon and unique string, for example iqn.2001-04.com.example:storage.tape1. Only lowercase letters, digits, dash, dot and colon are allowed.

Why use separate subnets for iSCSI paths A and B?

Separate subnets keep each path independent, so a fault or misconfiguration on one does not take both down, and each path can be tracked and monitored on its own.

Next, try the VLAN ID planner, the MTU size calculator and the SAN switch port calculator, or browse the full list of storage calculators. For a general-purpose subnet calculator that is not storage-specific, try the IPv4 subnet calculator. For a larger variable-length subnet plan with overlap checks, use the VLSM calculator.