VK Cloud logo
Updated at April 15, 2024   08:50 AM

Managing ports

You can manage OpenStack ports: view ports, add, edit and delete them.

Viewing a list of ports and port information

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

    A list of ports will be displayed.

  6. Click the name of the necessary port.

    Its information will be displayed.

Adding a port

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

  6. Click the Add port button.

  7. Set the port parameters:

    • port name,
    • (optional) DNS name of the port,
    • IP address of the port.
  8. Click the Create port button.

Enabling and disabling a port

Enabling a port

This is a group operation: you can enable multiple disabled ports at once, if necessary, by selecting them using the checkboxes.

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

  6. Enable the port in one of the following ways:

    • Using the checkboxes:

      1. Select the necessary port using the checkbox.
      2. Click the Enable port button.
      3. Confirm the operation.
    • Using the menu:

      1. Open the menu of the necessary port and select Enable port.
      2. Confirm the operation.

Disabling a port

A disabled port does not allow any traffic to pass through.

This is a group operation: you can disable multiple enabled ports at once, if necessary, by selecting them using the checkboxes.

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

  6. Disable the port in one of the following ways:

    • Using the checkboxes:

      1. Select the necessary port using the checkbox.
      2. Click the Disable port button.
      3. Confirm the operation.
    • Using the menu:

      1. Open the menu of the necessary port and select Disable port.
      2. Confirm the operation.

Editing a port

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

  6. Open the menu of the necessary port and select Edit.

  7. Set the parameters of the port:

    • port name,
    • DNS name of the port,
    • IP address of the port.
  8. Click the Save changes button.

Configuring IP Source Guard for a port

This mechanism allows only traffic for which the source IP address is in the allowed-address list to be allowed to leave the port.

  1. Make sure the OpenStack CLI is installed and you can authorize in it.

  2. Get the name or ID of the necessary port.

  3. To add a single source IP address, run the command:

    openstack port set <name or ID of the port> --allowed-address ip-address=<IP-address>

    If you need to add more IP addresses, repeat this command for each of them.

  4. To remove a single source IP address, run the command:

    openstack port unset <name or ID of the port> --allowed-address ip-address=<IP address>,mac-address=<mac-address>

    If you need to remove more than one IP address, repeat this command for each of them.

For detailed information on supported parameters, run one of the commands:

openstack port set --help
openstack port unset --help

Deleting a port

This is a group operation: you can delete multiple ports at once, if necessary, by selecting them using the checkboxes.

  1. Go to VK Cloud personal account.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Click the name of the necessary network, then the name of the necessary subnet.

  5. Navigate to the Ports tab.

  6. Delete the port in one of the following ways:

    • Using the checkboxes:

      1. Select the necessary port using the checkbox.
      2. Click the Delete port button.
      3. Confirm the operation.
    • Using the menu:

      1. Open the menu of the necessary port and select Delete port.
      2. Confirm the operation.