Skip to content
Calculators

Plan the subnets of your
private network and VPN

Before you create a private network (VLAN) on izCloud or connect your office over IPsec, check the block boundaries, the gateway address and how many IPs you can use.

Subnet calculation tool

Examples

Results will appear here

Enter an IP/CIDR, or choose a ready-made example.

What to know when planning subnets

  • CIDR and netmask

    A prefix such as /24 says how many bits of the address identify the network. /24 and 255.255.255.0 mean the same thing; the remaining 8 bits are left for host addresses.

  • Network and broadcast address

    The first address of a block is the network and the last is the broadcast; neither is assigned to a server. In blocks of /30 and larger, the usable host count is the total minus 2.

  • Private ranges

    For the private network between your servers, use the RFC 1918 ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Think about server count and growth, then round the block up to the next size.

  • Avoid overlaps

    Do not reuse a range that your office network or a VPN-connected network already uses; overlapping blocks break routing. Compare the blocks here before you build the plan.

How do you plan your izCloud private network and VPN subnets?

On izCloud you connect your servers to each other with a private network (VLAN) and attach your office to it with an IPsec tunnel. Both tasks depend on choosing the subnet boundaries correctly from the start. The calculator lets you check a block before you enter it in the panel.

When is the calculator useful on izCloud?

The panel asks for a /24 block from the RFC 1918 ranges for each private network and rejects a subnet that already exists. Checking the boundaries first is easier than deleting and recreating the network later.

  • Before you create a new private network (VLAN)
  • When you connect your office with an IPsec site-to-site VPN and need to compare the local and remote subnets
  • When you create a "Subnet" address object for a SNAT rule
  • When you split web, database and management servers into separate networks

How do you read the 10.1.0.0/24 result on izCloud?

When you create the network in the panel, you enter the gateway address in the "IP Address / CIDR" field, not the network address: 10.1.0.1/24.

FieldFor 10.1.0.0/24What it means on izCloud
Network address10.1.0.0Not assigned to a server; address objects use it to define the network
First usable IP10.1.0.1The gateway address of the network
Range left for servers10.1.0.2 – 10.1.0.254You assign network interface IPs from this range
Broadcast address10.1.0.255Not assigned to a server
Usable hosts254253 addresses remain for servers once the gateway is taken

How many servers fit in one /24 network?

A /24 block leaves 253 addresses for servers once the gateway is taken, which is more than enough for most projects. Splitting networks by role rather than by server count makes access easier to manage. For example, you can keep the database server on a separate network that only the application server reaches.

If the office side uses smaller blocks such as /26, the calculator's table of all networks within the same /24 shows which parts are taken and which are free.

Common mistakes

  • Choosing the same block as the office LAN. If the office uses 192.168.10.0/24, pick a different range such as 10.1.0.0/24 on izCloud; a site-to-site tunnel cannot be built when both ends have the same subnet.
  • Using 192.168.0.0/24 or 192.168.1.0/24 in the cloud network. Home and small office routers use these blocks widely, so they clash with the local network of remote users.
  • Trying to enter a larger block. The panel accepts only /24 for a private network; if you need more addresses, create a second network.
  • Assigning the gateway address, the first IP of the network, to a server.

Step by step on izCloud

After checking the block here, create the network on the Infrastructure → Network page and add a network interface to your server. The steps are in the private network (VLAN) guide.

If you connect your office, enter the izCloud block as the local subnet and the office block as the remote subnet in the Phase 2 settings of the tunnel, and mirror them on the other device. Details are in the IPsec site-to-site VPN guide.

When you write a SNAT rule so that servers on the private network can reach the internet, you define the source with this block as a "Subnet" address object. IPsec and SNAT require a service that includes the izCloud Firewall.

Give each network its own /24 and pick the blocks in sequence (10.1.0.0/24, 10.1.1.0/24 …). The plan stays readable and firewall rules are easier to write.

Frequently asked questions

How many usable addresses does a /24 network have?

254. Of the 256 addresses, the first is the network address and the last is the broadcast address; neither is assigned to a device.

Can I enter a netmask instead of a prefix?

Yes. 192.168.1.0/24, 192.168.1.0 255.255.255.0 and 192.168.1.0/255.255.255.0 are all accepted. The mask bits must be contiguous, so a mask such as 255.0.255.0 is invalid.

How are /31 and /32 handled?

/31 is intended for point-to-point links (RFC 3021): both of its addresses can be assigned and it has no broadcast address. /32 is a single address, where the network address and host address coincide.

Are the addresses I type sent anywhere?

No. The calculation runs entirely in your browser; the addresses you type are not sent to our servers or stored.