Private Network
With the private network feature of the Arvancloud Cloud Server, you can connect the instances in a data center and implement advanced scenarios and solutions.
Creating a Private Network
To create a private network, go to Networks in the Cloud Server panel, click Private Network, and then select Create Private Network.
On the next page, enter the required information, which includes the following.
Network Name
In this section, enter a name for the new private network you want to create. Any name can be chosen here.
Network Information
In this section, define a subnet for the private network. An important point is that when creating a new network, you must make sure to enter a gateway address for the subnet. This address can be any address in the IP range you specified. For example, if you set the subnet range to 10.0.0.0/24 when creating a new private network, the gateway address can be 10.0.0.1 or any number in this range. This way, you can use a floating IP.
Also, by selecting More Settings, you can configure more advanced settings to customize your private network. These settings include the following:
Gateway
Instances in a private network have no internet access by default. If they need internet access in the future, a floating IP must be provided for them. But using a floating IP requires a gateway, so it is recommended that you keep this option enabled.
Also, in the Gateway section, enter an IP address of your choice as the gateway. Just note that this address must be in the range you entered in the IP address section.
DHCP Range
If you want instances in this network to receive IPs automatically, you can enter a range from the IPs you've set aside for this network so they are assigned to instances automatically.
DNS Address
In this section, you can enter the address of a private or public nameserver, such as 8.8.8.8, so it's applied to instances automatically.
Finally, after making the settings, click Create Network to create the network with the settings you made.
Connecting an Instance to a Private Network
To connect an instance to a network, click Instances' Private Network Settings next to the network's name.
Then select the instances you want. After the instances are added to the network, you can ping the other instances in this network from inside each of them. This way, you can design and run various scenarios.