On izCloud you create the network yourself in the panel. It is built automatically in the firewall, virtualization and network layers, and the network gateway is the first IP of the network.
Before you start
- An izCloud service selected in the panel (from the Active Service card at the top of the side menu)
- Permission for networks (the account owner, or a sub-user with manage permission in the "Network" module)
- The private IP range you will use. This guide uses the 10.1.0.0/24 range
What is a private network (VLAN) used for?
A private network is a separate local network where your servers talk to each other without going out to the internet. You can put a database server on it so that only the web server can reach it.
A VLAN is a network tag that logically separates the same physical infrastructure. Each private network has its own VLAN ID. The example network in this guide uses the 10.1.0.0/24 range and VLAN 100.
How do you create a private network?
You create the network with the "Create Network" button on the "Infrastructure → Network" page. The page title shows as "Network". While "All Services" is selected the button is disabled, so first choose a service in the service selector.
- Select the service you want to add the network to from the Active Service card at the top of the side menu.
- Open the "Infrastructure → Network" page.
- Click the "Create Network" button. The "New Private Network" window opens.
- Type a name in the "Network Name" field. Example: web-ag.
- Type 10.1.0.1/24 in the "IP Address / CIDR" field.
- Type 100 in the "VLAN ID" field.
- Save the form.
| Field | What to enter | Rule |
|---|---|---|
| Network Name | web-ag | Required, up to 64 characters. Letters, digits, spaces, dots, hyphens and underscores are allowed |
| IP Address / CIDR | 10.1.0.1/24 | Required. Only /24 is accepted. Only private (RFC1918) addresses are allowed. The entry is rejected if the same subnet already exists |
| VLAN ID | 100 | Required. A number from 2 to 4094 |
Which IP range should I choose?
Choose one of the private address ranges. RFC1918 defines three ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The panel asks for a /24 subnet inside one of them.
When you pick the range, think about your office network and any VPN you will set up later. If your office LAN is 192.168.10.0/24, pick a different range such as 10.1.0.0/24 for the izCloud network. If both ends use the same subnet, a site-to-site VPN cannot be set up.
The first IP of the subnet (10.1.0.1) is the network gateway address. Give your servers addresses after it. The network address (10.1.0.0) and the broadcast address (10.1.0.255) cannot be given to a server.
How do you know the network is ready?
The network first shows as "Creating" in the list and becomes "Active" when it is ready. When you save, the message "Network creation has started. It will become active in the list when ready." appears.
Only one network can be created at a time. If you try to add a new network while one is "Creating", you see the warning "A network is being created; you can add a new one when it finishes."
If the status becomes "Error", delete the row and create the network again.
How do you add a private network to a server?
You add the network to a server in the "Network Interfaces" section of the "Edit Server" page. The "Add Interface" button starts this.
- Open the "Infrastructure → My Servers" page.
- Click the "Manage" button on the server's row.
- Open "Edit" from the ⋮ menu. The "Edit Server" page opens.
- In the "Network Interfaces" section, click the "Add Interface" button.
- Select the network you created as the network.
- Type 10.1.0.10 in the IP address box.
- Press Enter or click the arrow icon next to it ("Apply on server").
Which IP can I give a server?
The server IP must be inside the subnet of the network you chose. The network address and the broadcast address are not accepted.
You cannot allocate public IP addresses yourself. Public IPs are assigned by the administrator and appear read-only in the "Assigned IP Addresses" table on the "Network" page. For an extra IP, use the "Upgrade Resource → IP Address" path.
Example scenario: a web server and a database server
Say you have two servers. The web server gets 10.1.0.10 and the database server gets 10.1.0.11. You add an interface from the same network to both servers and apply the IPs.
The database listens only on this network. The web server connects to the database at 10.1.0.11. The database is not exposed to the internet.
How do you know it works?
Check three things. The network shows "Active" in the "Network" list. The IP shows the "Applied" status on the server's network interface. The servers can ping each other.
- The network status is "Active" in the Network list
- The IP status is "Applied" in the Network Interfaces section
- The database server answers a ping from the web server
ping -c 4 10.1.0.11
Common problems
If you see the warning "To add a network, first select a service from the top-right menu.", select the service from the Active Service card at the top of the side menu and refresh the page.
If the IP status is "Not applied" and the message says the guest agent is not running, start the guest agent service on the server and try again.
If you enter the same subnet a second time, the entry is rejected. Choose a different range.
Check the connected servers before you delete a network. When a network is deleted, the connected servers lose their connection. Deleting is a critical operation, so it may ask for two-factor authentication.
If you remove the primary network interface, remote access to the server may be cut off.
How does the network work on a service without a firewall?
On a service without a firewall, the network is created as layer 2 only. The subnet is optional, and the gateway and routing are set up on your own firewall or router server.
Servers on this network cannot reach the internet by themselves. On the server setup screen, this network appears with the "No internet access" label.
Frequently asked questions
How many private networks can I create?
There is an upper limit on the number of networks defined for your service. When you reach the limit, contact the support team for a new network.
What subnet size can I use?
On a service with a firewall, only /24 is accepted. On a service without a firewall, a subnet from /8 to /30 can be entered and the subnet is optional.
What VLAN ID should I use?
Enter a number from 2 to 4094 that you have not used before. This guide uses 100 as an example.
Can I assign a public IP myself?
No. Public IPs are assigned by the administrator. For an extra IP, use the "Upgrade Resource → IP Address" path.
Can I create more than one network at the same time?
Only one network is created at a time. You can add a new one after the network becomes "Active".
Can a server on a private network reach the internet?
On a service with a firewall, internet access needs an outbound rule and NAT in the firewall. The SNAT guide explains this step by step.