Create a network
Create a network when VMs and routers need a new segment with a separate subnet. Center fills the IP pool of the network itself, and the VDCs it is assigned to can use the network.
Before you begin
- You need the Cluster master role. VDC admin can create only a network of the Isolated or GENEVE type.
- The network type is chosen — Networks and IP pools.
- The subnet is chosen: IPv4 with a prefix from /16 to /29, for example
192.0.2.0/24, IPv6, for example2001:db8::/64, or both. - For a Routed network, you know the VLAN number; for Q-in-Q, two numbers. The numbers must be within the cluster VLAN range.
- If the VMs of the network must get their own DNS servers, you know their IPv4 addresses. You set network DNS only at creation — Network DNS.
1. Open the New network panel
- In the left menu, select Provider Data Center → All Networks.
- Click Add network above the Networks table. The New network panel opens on the right.
There is no button if you do not have the right to create networks.
2. Set the general parameters
- Enter the network name in the Name field of the General parameters section. The name is up to 64 characters.
- In the Stack type field, select which subnets the network has: IPv4-only, IPv6-only or Dual-stack — both. The default is IPv4-only.
- Select the type in the Network type field. The default is Isolated. If Routed and Q-in-Q are not available to you, the field shows Only a cluster administrator can create this network type below it.
3. Set the addressing
- Enter the subnet with its prefix in the CIDR (v4) field, for example
192.0.2.0/24, and for IPv6 in the CIDR (v6) field, for example2001:db8::/64. The fields exist only for the selected stack. - If needed, enter the gateway in the Gateway (v4) or Gateway (v6) field — an address from the subnet, without a prefix. An empty Gateway (v4) field makes the first address of the subnet the gateway, for example
192.0.2.1. With an empty Gateway (v6) field, the IPv6 subnet has no gateway. - For Routed and Q-in-Q, enter the VLAN number in the VLAN ID field. For Q-in-Q, also enter the inner tag in the Q-in-Q ID field: VLAN ID is the outer tag (S-VLAN), Q-in-Q ID is the customer tag (C-VLAN). The fields appear after you select the type.
- If needed, enter MTU — the frame size, from 1000 to the cluster maximum. An empty field means 1500.
4. Set the network DNS
The DNS section is optional. Skip it if the system DNS servers are enough for the VMs of the network.
- Enter an IPv4 address in the Primary DNS server field, for example
192.0.2.53. - If needed, enter a second IPv4 address in the Secondary DNS server field. It is not accepted without the primary one.
- If needed, enter the search domain in the DNS suffix (search domain) field, for example
example.com, — up to 253 characters.
5. Create the network
- Click Create a Network at the bottom of the panel. The button is unavailable while fields are filled in incorrectly: the reason is shown below the field with the error.
Check the result
When the network is created, the web interface shows Network <name> created, closes the New network panel and opens the panel of the new network. It shows Network type, Stack type, subnets, gateways, MTU, the DNS section and the IP pool section with the number of addresses. The network appears in the Networks table on the All Networks page.
If the network could not be created, the web interface shows a notification with the reason and highlights the field that Center rejected. Common causes:
- VLAN ID is outside the cluster range or Q-in-Q ID is outside the cluster range — the number is outside the cluster VLAN range;
- Couldn't create the network. The VLAN may already be used by another network — another network already has this VLAN number;
- MTU must be from 1000 to <maximum> — MTU exceeds the cluster maximum.
More
- You can also create a network from a VDC page: Virtual Data Centers → the VDC → Networks → Add network above the table. The same New network panel opens. After creation, Center immediately assigns the network to this VDC if you have the right to assign networks in it.
- An Isolated network does not keep the VLAN number: the network is built on top of the network between nodes, and the number stays free for a Routed network.
Next
- Assign a network to a VDC — so that the VMs of the VDC can connect to the network.
- Exclude an address from an IP pool and view used addresses
- Networks and IP pools — network types, DNS and tags.
API methods: nets-create — in the API reference.