Network Setup and Tutorial¶

Networking setup should be a one-time setup. While Floating IPs fall under the Networking fold-out, they should be allocated and released together with instances to maximize security.

Important

If you are viewing this page as part of the cloud.rc tutorial, please follow the steps in order from top to bottom. Ignore any sections on deleting or releasing resources unless you need to correct a mistake.

Note

Virtual machines are disposable! If you get stuck at any point, or things don't seem like they're working as expected, etc., feel free to delete the instance and start over.

Networks¶

Creating a Network¶

1. Click "Network" in the left-hand navigation pane to open the fold-out menu.

2. Click "Networks" in the fold-out menu.

1. The "Networks" page will open.
2. The "uab_campus" network entry should already be in the table.

3. Click "+ Create Network" to open a dialog box.

4. Fill out the dialog box. Only the "Network" tab is important, we will create a subnet as a separate step.

1. Enter a "Network Name". See Naming Conventions.

2. Leave "Enable Admin State" checked.

3. Uncheck "Create Subnet". We will do this as a separate step. The other tabs should be removed.

4. Leave the "Availability Zone Hints" box empty.

5. Click "Create".

1. Redirects to the "Networks" page.
2. There should be a new entry in the table with the name given in (4.a)

Deleting a Network¶

Note

Deleting Networks is not part of the tutorial, and is here as a reference.

To delete a network, return to the "Networks" page using the left-hand navigation pane. In the table, find the row with the network you wish to delete, and click the drop-down arrow under "Actions" in that row. Then click "Delete Network" to open a confirmation dialog.

Click "Delete Network" again to delete the network permanently.

Important

You will not be able to delete the network if it has a subnet with any connected routers or ports. They will need to be removed or deleted first.

Subnets¶

Creating a Subnet¶

1. Click "Network" in the left-hand navigation pane to open the fold-out menu.

2. Click "Networks" in the fold-out menu.

1. The "Networks" page will open.

2. The "uab_campus" network should already be an entry in the table.

3. At least one other entry must be in the table. See Creating a Network.

3. Under the "Actions" column, select the drop-down triangle button in the row corresponding to the network you want to add a subnet to.

4. Click "Create Subnet" in the drop-down to open a dialog box.

5. Fill out the dialog box.

1. The "Subnet" tab.

1. Enter a "Subnet Name". See Naming Conventions.

2. Enter 192.168.0.0/24 as the "Network Address". The trailing /24 allocates the entire range from 192.168.0.0 through 192.168.0.255 to the subnet.

3. Ensure "IPv4" is selected in the "IP Version" drop-down box.

4. Leave "Gateway IP" empty to use the default value of 192.168.0.0.

5. Leave "Disable Gateway" unchecked.

6. Click the "Next >>" button to move to the "Subnet Details" tab.

Note

If you receive an error like

Failed to create subnet 192.168.0.0/24...
Invalid input for operation: Gateway is not valid on a subnet.


Try changing the gateway IP address to 192.168.0.1 and trying again.

2. The "Subnet Details" tab.

1. Leave "Enable DHCP" checked.
2. Enter 192.168.0.20,192.168.0.100 in the "Allocation Pools" box. The IP addresses in that range will be assigned to instances on this subnet.
3. Leave "DNS Name Servers" empty.
4. Leave "Host Routes" empty.

6. Click "Create".

1. Redirects to the "Overview" page for the network the subnet was added to.

2. Click the "Subnets" tab next to "Overview" to verify the subnet was added to the table for this network.

Deleting a Subnet¶

Note

Deleting Subnets is not part of the tutorial, and is here as a reference.

To delete a subnet, return to the "Networks" page using the left-hand navigation pane. In the table, find the row with the associated subnet, and click the name of the network to go to that network's page.

Click on the "Subnets" tab to go to the subnets table. In the table, find the row with the subnet you wish to delete, and click the drop-down arrow under "Actions" in that row. Then click "Delete Subnet" to open a confirmation dialog.

Click "Delete Subnet" again to delete the subnet permanently.

Important

You will not be able to delete the subnet if it is associated with any routers or ports. They will need to be removed or deleted first.

Routers¶

Creating a Router¶

To follow these directions for creating a router, a Network and Subnet must already exist.

1. Click "Network" in the left-hand navigation pane to open the fold-out menu.

2. Click "Routers" in the fold-out menu.

3. Click "+ Create Router" to open a dialog box.

4. Fill out the dialog box.

1. Enter a "Router Name". See Naming Conventions.
2. Leave "Enable Admin State" checked.
3. Select "uab-campus" in the "External Network" drop down box.
4. Leave the "Availability Zone Hints" box empty.

5. Click "Create Router".

1. Redirects to the "Routers" page.
2. There should be a new entry in the table with the name given in (4.a)

6. Now we need to connect the router to our subnet. Click the name of the new entry under the "Name" column to open the router "Overview" page.

7. Click the "Interfaces" tab.

8. Click "+ Add Interface" to open a dialog box.

9. Fill out the dialog box.

1. Select an existing network-subnet pair in the "Subnet" drop down box.
2. If this is your only router on the selected subnet, leave "IP Address" empty to use the subnet gateway.

10. Click "Submit"

1. Redirects to the "Interfaces" page for the router.
2. There should be a new entry in the table.

Deleting a Router¶

Note

Deleting Routers is not part of the tutorial, and is here as a reference.

To delete a router, return to the "Routers" page using the left-hand navigation pane. In the table, find the row with the router you wish to delete, and click the drop-down arrow under "Actions" in that row. Then click "Delete Router" to open a confirmation dialog.

Click "Delete Router" again to delete the router permanently.

Floating IPs¶

Creating a Floating IP¶

Floating IPs are required if you want an instance to talk to devices on the internet. These IPs are a shared resource, so they must be allocated when needed and released when no longer needed.

1. Click "Network" in the left-hand navigation pane to open the fold-out menu.

2. Click "Floating IPs".

3. Click "Allocate IP to Project" to open a dialog box.

4. Fill out the dialog box.

1. Select "uab-campus" in the "Pool" drop down box.
2. Enter a "Description".
3. Leave "DNS Domain" empty.
4. Leave "DNS Name" empty.

5. Click "Allocate IP".

1. Redirects to the "Floating IPs" page.
2. There should be a new entry in the table.

Releasing a Floating IP¶

Note

Releasing Floating IPs is not part of the tutorial, and is here as a reference.

To release a floating IP, return to the "Floating IPs" page using the left-hand navigation pane. In the table, find the row with the floating IP you wish to release, and click the drop-down arrow under "Actions" in that row. Then click "Release Floating IP" to open a confirmation dialog.

Click "Release Floating IP" again to release the floating IP.

Continuing the Tutorial¶

Now that you have set up a Network, the next step is to apply Security Policies to be able to communicate with it. To continue the tutorial, please visit Security Policies next.

Last update: October 20, 2022