Skip to main content
Ports
Last update:

Ports

A port is a virtual network card to which a mapping of a MAC address and a private IP address is assigned from a subnet. The IP address is assigned to the port within the subnet in which the port is located.

Ports are used to connect devices to private subnets, global router subnets, and public subnets. If a port is disconnected from a device, it will also be disconnected from a subnet. A private subnet cannot be deleted if it has at least one port.

You can work with ports in control panelswith the help of OpenStack CLI or Terraform.

In cloud networks, service ports are automatically created and management is not available:

Add a port to a subnet

A port can be added to a private subnet, a global router subnet, or a public subnet.

  1. В control panels go to Cloud platformNetwork.

  2. Open the tab depending on which subnet you want to add the port to:

    • for a private subnet or a global router subnet — Private networks;
    • for the public subnet-- Public subnets.
  3. Open the subnet card → tab Ports.

  4. Click Add a port.

  5. Select a subnet.

  6. Enter the IP address of the port.

  7. Click Add a port.

Add a cloud server or Managed Kubernetes cluster node to the subnet via port

A cloud server can be added to a private subnet, a global router subnet, or a public subnet after server creation. The Managed Kubernetes cluster node can be added to a private subnet or a global router subnet.

To do this, you need to add a port to the server or node.

  1. В control panels go to Cloud platformServers.
  2. Open the server page → tab Ports.
  3. Click Add a port.
  4. Select private subnet, global router subnet, or public subnet.
  5. Enter the IP address of the port.
  6. Click Add a port.

Connect a public IP address to a port on a private subnet

If a cloud server or load balancer is connected to a port on a private subnet, you can connect to the port by public IP address.

To connect a public IP address in the device sections of the control panel, use the following instructions Public IP addresses.

  1. Make sure the device is on a subnet that meets the requirements. Use the instructions to prepare the subnet Prepare a private subnet to connect a public IP address.
  2. В control panels go to Cloud platformNetwork.
  3. Open the tab Private networks.
  4. Open the network card → tab Ports.
  5. In the cloud server or load balancer port row in the column Public IP click Connect.
  6. Select a public IP address.

Disconnect a public IP address from a port on a private subnet

To disable the public IP address in the device sections in the control panel, use the following instructions Public IP addresses.

  1. Make sure the device is on a subnet that meets the requirements. Use the instructions to prepare the subnet Prepare a private subnet to connect a public IP address.
  2. В control panels go to Cloud platformNetwork.
  3. Open the tab Private networks.
  4. Open the network card → tab Ports.
  5. In the cloud server or load balancer port row in the column Public IP on the menu of the public IP address, select Disable public IP.
  6. Select a public IP address.

Enable port

  1. В control panels go to Cloud platformNetwork.

  2. Open the tab depending on which subnet you want to enable the port for:

    • for a private subnet or a global router subnet — Private networks;
    • for the public subnet-- Public subnets.
  3. Open the subnet card → tab Ports.

  4. In the port line, enable the port.

Disable the port

  1. В control panels go to Cloud platformNetwork.

  2. Open the tab depending on which subnet you want to disable the port for:

    • for a private subnet or a global router subnet — Private networks;
    • for the public subnet-- Public subnets.
  3. Open the subnet card → tab Ports.

  4. In the port row, disable the port.

Delete port

  1. В control panels go to Cloud platformNetwork.

  2. Open the tab depending on which port from which subnet you want to remove:

    • for a private subnet or a global router subnet — Private networks;
    • for the public subnet-- Public subnets.
  3. Open the subnet card → tab Ports.

  4. On the port line, click .