Networking: Difference between revisions

From DataTenant Knowledgebase
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
# In the top right hand corner, select 'Create Network'.
# In the top right hand corner, select 'Create Network'.
# Select which region you'd like to create your network in. For more information about regions, please review our [[Regions]] article.
# Select which region you'd like to create your network in. For more information about regions, please review our [[Regions]] article.
# Give your Network a name. You can name your network something descriptive, like 'SQL Database Network', or something specific, like '192.168.0.0/24'.
# Select the 'Enable DHCP' option if it is not already enabled.
## Enabling DHCP on these networks is important, as newly created virtual machines need network connectivity in order to process their cloud initialization configuration. In the rare cases where you do not wish to have DHCP enabled on these private networks, please review our [[Config Drive]] article to ensure cloud initialization is still performed successfully.
# In the CIDR field, enter the subnet you wish to use in this private network. It should be written in CIDR notation (as in, 10.0.1.0/24 or something similar).
# In the Allocation Pools field, you have the option to narrow the range of IPs that the cloud is allowed to hand out to virtual machines within this network. You can write this in the form of ''Starting IP address, Ending IP address''.
## For example, when creating a ''192.168.0.0/24'' network, you could opt to narrow the allocation range by entering ''192.168.0.10, 192.168.0.100''. This would ensure only those 90 addresses would be handed out.
# In the DNS Name Servers field, you can fill in what DNS servers you would like to be given to virtual machines that use this network. You can write this in the form of ''First DNS IP Second DNS IP Third DNS IP''.
## For example, if I wanted to make use of a private DNS server at ''192.168.0.5'' and a public DNS server at ''8.8.4.4'', I would enter ''192.168.0.5 8.8.4.4'' in that field.
# In the Host Routes field, you can enter any static routes you would like to be injected into virtual machines that make use of this network.
# If you wish to customize the default gateway IP that will be advertised to virtual machines that use this network, you can toggle the 'Custom Gateway IP' option and enter a custom gateway IP address. If not, the first address in the network will be assumed to be the gateway.
When you've entered in these details, select 'Create Network' at the bottom to create your private network in your selected region.
==Creating a Virtual Router==
Once you've created a private network, you have the option of creating a virtual router to bridge together multiple private networks, or to give your private network access to the internet. Once a private network has been linked to the internet, you will also have the option to use 'Floating IP addresses' to make your virtual machine accessible from the internet.
# In the Cloud menu on the left hand side, select 'Networking'.
# In the top menu, choose 'Routers'.
# Select 'Create router'.
#

Latest revision as of 17:10, 15 October 2024

This article will explain DataTenant public cloud networking.

The DataTenant public cloud makes it easy to create private networks for your virtual machines and to connect them or advertise them to the internet.

Creating Private Networks

In your project, you can create nearly endless numbers of private virtual networks for your use in each region currently available to you. To get started, login to the cloud and select the project you'd like to work in.

  1. In the Cloud menu on the left hand side, select 'Networking'.
  2. In the top right hand corner, select 'Create Network'.
  3. Select which region you'd like to create your network in. For more information about regions, please review our Regions article.
  4. Give your Network a name. You can name your network something descriptive, like 'SQL Database Network', or something specific, like '192.168.0.0/24'.
  5. Select the 'Enable DHCP' option if it is not already enabled.
    1. Enabling DHCP on these networks is important, as newly created virtual machines need network connectivity in order to process their cloud initialization configuration. In the rare cases where you do not wish to have DHCP enabled on these private networks, please review our Config Drive article to ensure cloud initialization is still performed successfully.
  6. In the CIDR field, enter the subnet you wish to use in this private network. It should be written in CIDR notation (as in, 10.0.1.0/24 or something similar).
  7. In the Allocation Pools field, you have the option to narrow the range of IPs that the cloud is allowed to hand out to virtual machines within this network. You can write this in the form of Starting IP address, Ending IP address.
    1. For example, when creating a 192.168.0.0/24 network, you could opt to narrow the allocation range by entering 192.168.0.10, 192.168.0.100. This would ensure only those 90 addresses would be handed out.
  8. In the DNS Name Servers field, you can fill in what DNS servers you would like to be given to virtual machines that use this network. You can write this in the form of First DNS IP Second DNS IP Third DNS IP.
    1. For example, if I wanted to make use of a private DNS server at 192.168.0.5 and a public DNS server at 8.8.4.4, I would enter 192.168.0.5 8.8.4.4 in that field.
  9. In the Host Routes field, you can enter any static routes you would like to be injected into virtual machines that make use of this network.
  10. If you wish to customize the default gateway IP that will be advertised to virtual machines that use this network, you can toggle the 'Custom Gateway IP' option and enter a custom gateway IP address. If not, the first address in the network will be assumed to be the gateway.

When you've entered in these details, select 'Create Network' at the bottom to create your private network in your selected region.

Creating a Virtual Router

Once you've created a private network, you have the option of creating a virtual router to bridge together multiple private networks, or to give your private network access to the internet. Once a private network has been linked to the internet, you will also have the option to use 'Floating IP addresses' to make your virtual machine accessible from the internet.

  1. In the Cloud menu on the left hand side, select 'Networking'.
  2. In the top menu, choose 'Routers'.
  3. Select 'Create router'.