Networking: Difference between revisions

From SD4H wiki
Jump to navigation Jump to search
Line 10: Line 10:
You can create a network from the Create network button from both the <code> Network Topology</code> tab. Pick the name of the network with <code>Enable Admin State </code> and <code>Create Subnet box checked</code>, click next, pick a name for the subnet, in <code>Network Address Source</code> select <code>Allocate Network Address from a pool </code>, select the 172.16.0.0/12 pool and use the needed <code> Network Mask </code>, 24 will give you 256 addresses, click Next, make sure Enable DHCP is checked and click Create. You now have a new network. You can attach an existing VMs to that new network in the <code>Instance</code> tab by selecting <code> Attach Interface</code> in the <code>Actions</code> drop down menu of the instance.   
You can create a network from the Create network button from both the <code> Network Topology</code> tab. Pick the name of the network with <code>Enable Admin State </code> and <code>Create Subnet box checked</code>, click next, pick a name for the subnet, in <code>Network Address Source</code> select <code>Allocate Network Address from a pool </code>, select the 172.16.0.0/12 pool and use the needed <code> Network Mask </code>, 24 will give you 256 addresses, click Next, make sure Enable DHCP is checked and click Create. You now have a new network. You can attach an existing VMs to that new network in the <code>Instance</code> tab by selecting <code> Attach Interface</code> in the <code>Actions</code> drop down menu of the instance.   


Not that VMs that will be solely attached to that network will have no internet access. You would need to attach the router that has access to the Public-Network to the network to make that happen.  
Not that VMs that will be solely attached to that network will have no internet access. You need to attach the router that has access to the Public-Network to the network to give it acess to the internet.


=== Share the network with another tenant ===
=== Share the network with another tenant ===


This step can only be made with the [[OpenStack Client]], start by following its [[OpenStack_Client#Install_the_openstack_client|installation and configuration procedure]]
This step can only be made with the [[OpenStack Client]], start by following its [[OpenStack_Client#Install_the_openstack_client|installation and configuration procedure]]

Revision as of 15:22, 25 February 2025

Basics

You can see the current network of your project from the Juno webpage. There you see the three basic networks available to all projects: <myproject>_network , where you VM lands by default, it is the local area network (LAN) of your project; the Public-Network that is the internet, you see that a router named <myproject>_router is connecting your LAN to the internet; CephFS-Network is the CephFS file system network; you need to connect your VM to that network to access CephFS volumes.

Share a Network with another OpenStack project

There could be situations where it is needed to share a network with the project of a collaborator on SD4H so communication between two servers can be done without having to resort to the internet.

Create a new network

You can create a network from the Create network button from both the Network Topology tab. Pick the name of the network with Enable Admin State and Create Subnet box checked, click next, pick a name for the subnet, in Network Address Source select Allocate Network Address from a pool , select the 172.16.0.0/12 pool and use the needed Network Mask , 24 will give you 256 addresses, click Next, make sure Enable DHCP is checked and click Create. You now have a new network. You can attach an existing VMs to that new network in the Instance tab by selecting Attach Interface in the Actions drop down menu of the instance.

Not that VMs that will be solely attached to that network will have no internet access. You need to attach the router that has access to the Public-Network to the network to give it acess to the internet.

Share the network with another tenant

This step can only be made with the OpenStack Client, start by following its installation and configuration procedure