Managing Networks

Managing Private Networks

Creating a Private Network

Follow these steps to create a private network:

  1. Go to the Network section of the desired project.
  2. Select the required region.
  3. Click Create network.
  4. Enter the network name in the new window.
  5. Enter subnet CIDR (you can add multiple IP addresses available in this subnet).
  6. Click Create.

A new subnet will appear in the list.

There are no restrictions on the traffic volume inside the private network. This allows you to transfer any amount of data between your services without additional fees. The number of private networks in use is unlimited. The bandwidth is 1 Gbps.

All networks can be created from the server’s card. More information can be found in the Creating a Cloud Server article.

Merging Servers into a Private Network

All cloud servers can be merged into a private network.

Follow these steps to connect a cloud server to the desired private network:

  1. Go to the Servers section in the project.
  2. Open the server’s card.
  3. Open the Ports tab.
  4. Click Add port.
  5. Select a subnet from the desired network and click Add port.

The private network only works within the project and is not available for other projects in the user’s account or other accounts by default.

Follow these steps to make the private network of one project available to another project:

  1. Open the project page and copy the UUID of the target project.
  2. Go to the Network tab in the project.
  3. Expand the menu of the network that you want to share on another project.
  4. Go to the Projects tab.
  5. Enter the copied project UUID to add the required project.

Connecting a Private Network to the Router

You can connect a private network to a virtual router to organize NAT-access to the Internet and assign external IP addresses to selected cloud servers.

Follow these steps to create a router:

  1. Go to the Routers tab in the Network section.
  2. Select the required region.
  3. Click Create router.
  4. Specify the region and enter the name of the router in the new window.
  5. Click Create.

The created router can be connected to the external network gateway on the Attaching tab in the router’s card. You can assign a port to the router on the Ports tab in the router’s card. Click Add port and select the desired subnet to assign a port.

Connecting a Server to the Internet

Internet access is provided via public subnets or a floating IP address, which is a full external IP address and is available until it is deleted. Bandwidth both over the Internet and locally is 1 Gbps.

Via Public Subnets

Follow these steps to connect the server to a public subnet:

  1. Go to the Private networks tab in the Network section.
  2. Select the required region in the list.
  3. Click Add subnet.
  4. Select the subnet size, review the cost of the service, and confirm the payment in the new window.

To access the cloud server to the Internet through a public network, open the server’s card, go to the Ports tab, and add a port for the subnet from the network called “Public”.

Via Floating IP

Follow these steps to start using a floating IP:

  1. Go to the Floating IPs tab in the Network section.
  2. Select the required region in the list.
  3. Click Add IP address.
  4. Specify the number of addresses, review the cost of the service, and confirm the payment in the new window.

After payment, a NAT router appears in the Routers section. The NAT network appears in the Private networks section.

To access a cloud server on the Internet with a floating IP address, add a port for the NAT network in the server card, and connect the floating IP to this port.

VRRP Subnets

One VRRP subnet can connect 2 regions. There can be several VRRP subnets in one project if more than 2 regions are available in this project.

Follow these steps to start using a VRRP subnet:

  1. Go to the Quotas section in the project and click Edit.
  2. Edit the quotas in the Crossregion resources field.
  3. Go to the Network subsection in the project’s card and open the VRRP subnets tab.
  4. Click Create VRRP subnet.
  5. Choose regions to add a VRRP subnet.
  6. Click Add VRRP subnet.

A VRRP subnet will be created.

In each region, the first effective subnet address is used as a gateway. The second address is reserved for official needs. The remaining four addresses can be assigned to virtual machines. More information can be found in our blog in the articles Router Redundancy with VRRP and Guest Post: Our Experience with Selectel’s VRRP.

Managing Networks Through CLI

Learn more about getting started with the OpenStack CLI.

Assigning a Floating IP Address

A floating IP address is used to access the cloud server to the Internet.

To view a list of all allocated floating IP, run the following:

openstack floating ip list

To allocate a floating IP, run:

openstack floating ip create external-network

To assign a floating IP to the server created earlier in the Control panel:

openstack server add floating ip <server> <IP address>

Both the server name and its ID can be used in the <server> parameter.

Creating Subnets and Ports

To create a new network, run the following:

openstack network create <network name>

The response will contain a table with information about the network:

+----------------+--------------------------------------+
| Field          | Value                                |
+----------------+--------------------------------------+
| admin_state_up | True                                 |
| id             | add73ca5-6120-43bd-bb56-d1d8d71d21ac |
| name           | localnet                             |
| shared         | False                                |
| status         | ACTIVE                               |
| subnets        |                                      |
| tenant_id      | d15391cc95474b1ab6bd81fb2a73bc5c     |
+----------------+--------------------------------------+

To create a subnet on this network , run:

openstack subnet create \
 --network <network name> \
 --subnet-range <subnet-range> \
 <subnet name>

To create a new port on the network, run:

openstack port create \
 --network <network name> \
 <port name>

To connect a port to a cloud server, run:

openstack server add port [-h] <server> <port name>