Elastic IPs
In this article:
Elastic IPs#
General information#
In K2 Cloud, instance network interfaces have Private IP in the internal virtual network, which is required for proper operation in the network infrastructure. Private IP is allocated automatically when the interface is created, and cannot be changed.
To ensure access to the instance from the outside, associate an Elastic IP (external address) to its network interface.
K2 Cloud provides public Elastic IP addresses, but you can also register your own provider-independent IPv4 address blocks (and make K2 Cloud responsible for broadcasting BGP routes) and use them in your projects:
operating with high reputation IP addresses (for email services);
simplifying the migration to the Cloud — when there are a lot of access lists containing specific address block;
problem prevention when government agencies block cloud provider subnets;
support of devices with certain IPs hardcoded in it;
compliance of different regulations;
saving the money — you don’t pay for using your own IP addresses.
If an instance does not need external access, then the Elastic IP may be deleted.
Billing#
An hourly fee is charged for each Elastic IP address.
Note
IP addresses from a user pool are free of charge.
Available quotas#
The following default quotas are allocated for an Elastic IP address:
30 Elastic IP addresses per a project in each region.
If necessary, you can increase quotas. To do this, contact the support service via the support portal or by email support@k2.cloud.
Allocating Elastic IP#
When allocating Elastic IP, you will be suggested to choose an IP address pool from which the Elastic IP address will be allocated.
By default — the Elastic IP address range provisioned by K2 Cloud.
Important
If an allocated Elastic IP has not been used for two months (was not assigned to a network interface), then it will be automatically deleted. After the IP address is deleted, there is no guarantee that the same Elastic IP will be allocated next time.
Important
По умолчанию NAT для Elastic IP-адресов работает в stateless-режиме (без отслеживания соединений). Это позволяет повысить производительность маршрутизации трафика. В редких случаях из-за этого конечные хосты могут некорректно обрабатывать сообщения вида
ICMP TTL ExceededилиICMP Fragmentation Needed, так как в stateless-режиме NAT не транслирует данные внутри пакета (payload).Если для ваших сервисов критична работа этих механизмов, направьте запрос в службу поддержки со списком Elastic IP-адресов для перевода их в stateful-режим. После выполнения запроса этот режим будет поддерживаться для адресов до их удаления из проекта либо до отключения stateful-режима службой поддержки по отдельному запросу. Кроме того, Elastic IP-адресу будет назначен тег с ключом StatefulNat и значением
True.Операции назначения и освобождения Elastic IP-адреса не влияют на поддержку stateful-режима для этого адреса. Трафик, проходящий через этот адрес, будет обрабатываться в выбранном режиме независимо от того, какому экземпляру он назначен в текущий момент.
Owned by user — The pool of IPv4 addresses of your organization in a registered range.
Note
This pool is available if you have registered your one or more provider-independent range of addresses (see Provisioning an IP address range). Unlike the K2 Cloud pool, you can specify a specific IP address, otherwise a free random address from your pool will be allocated.
DDoS protected — Elastic IP addresses in this pool are protected by Servicepipe provider against DDoS attacks.
Note
This pool is available if you previously activated the “DDoS protection service”.
To allocate an Elastic IP:
В веб-интерфейсе в верхнем меню выберите проект и регион, где требуется выделить Elastic IP-адрес.
Expand the side menu by clicking .
Перейдите в раздел Виртуальные машины Сеть Elastic IP. Для быстрого нахождения раздела вы можете воспользоваться поиском по меню.
Click Allocate Elastic IP.
In the dialog window:
В поле Пул Elastic IP выберите пул адресов, из которого будет выделен IP-адрес.
(Только для пользовательского пула адресов) В поле Elastic IP укажите, какой IP-адрес следует выделить из доступного диапазона.
If you need to set a tag, click Add tag and specify the tag key and value. To assign more tags, click Add tag again.
Once all parameters are set, click Allocate.
Elastic IP association#
You can associate an unused Elastic IP address with an instance network interface in any VPC to which an internet gateway is attached.
В веб-интерфейсе в верхнем меню выберите проект и регион, где требуется назначить Elastic IP-адрес.
Expand the side menu by clicking .
Перейдите в раздел Виртуальные машины Сеть Elastic IP. Для быстрого нахождения раздела вы можете воспользоваться поиском по меню.
Выберите IP-адрес в таблице ресурсов и нажмите Назначить на всплывающей панели действий.
В открывшемся окне выберите, какому типу ресурса следует назначить Elastic IP — экземпляру или сетевому интерфейсу.
Для уточнения списка выберите VPC из раскрывающегося списка в поле VPC. В этом случае будут выбраны все экземпляры или сетевые интерфейсы, относящиеся к этому VPC, иначе — все доступные экземпляры или сетевые интерфейсы.
Из раскрывающегося списка ресурсов выберите экземпляр или сетевой интерфейс, которому будет назначен Elastic IP.
Note
When you select an instance, the Elastic IP associated will be associated with its primary network interface.
Click Associate to complete the operation.
Note
После назначения Elastic IP сетевой интерфейс станет доступен по заданному адресу в течение минуты.
Elastic IP can also be associated on its page in the Information tab.
Elastic IP disassociation#
Elastic IP can be disassociated only if it is associated with any resource (otherwise the button will be inactive). Once the Elastic IP address has been disassociated, it can be re-associated with an instance network interface or deleted.
В веб-интерфейсе в верхнем меню выберите проект и регион, где требуется освободить Elastic IP-адрес.
Expand the side menu by clicking .
Перейдите в раздел Виртуальные машины Сеть Elastic IP. Для быстрого нахождения раздела вы можете воспользоваться поиском по меню.
Выберите назначенный IP-адрес в таблице ресурсов и нажмите Освободить на всплывающей панели действий. Одновременно можно выбрать несколько IP-адресов.
In the dialog window, confirm the action.
Elastic IP can also be disassociated on its page in the Information tab.
Provisioning an IP address range#
You can send a request to register your own provider-independent block of IPv4 addresses to the K2 Cloud support directly from the web interface. If necessary, our specialist will contact you to get more details. Once IP addresses are registered, you will receive a notification to the specified e-mail address. You can also check the registration status, for example, using the API method DescribeByoipCidrs. The address block status should change from pending-provision to advertised.
В веб-интерфейсе в верхнем меню выберите регион, где требуется зарегистрировать диапазон IP-адресов.
Expand the side menu by clicking .
Перейдите в раздел Виртуальные машины Сеть Elastic IP. Для быстрого нахождения раздела вы можете воспользоваться поиском по меню.
Нажмите Зарегистрировать IP-адреса.
В открывшемся окне в поле CIDR-блок введите блок IPv4-адресов в нотации CIDR. В поле Описание добавьте дополнительную информацию по заявке.
Click Submit the request.
Note
To deprovision IP address range, contact support service or use the API method DeprovisionByoipCidr.
Deleting an Elastic IP#
Both associated and disassociated Elastic IPs can be deleted.
В веб-интерфейсе в верхнем меню выберите проект и регион, где требуется удалить Elastic IP-адрес.
Expand the side menu by clicking .
Перейдите в раздел Виртуальные машины Сеть Elastic IP. Для быстрого нахождения раздела вы можете воспользоваться поиском по меню.
Выберите IP-адрес в таблице ресурсов и нажмите Удалить на всплывающей панели действий.
In the dialog window, confirm the action.
Elastic IP can also be deleted on its page in the Information tab.
Elastic IP information#
Information about allocated Elastic IPs can be viewed in the resource table in Virtual machines Networking Elastic IP.
To view details of a particular Elastic IP, find the desired address and click its ID. This will open the Elastic IP page.
The Information tab displays the main Elastic IP parameters :
Elastic IP address;
пул Elastic IP-адресов;
instance with which it is associated;
network interface with which it is associated;
private IP address of a network interface.
Here you can:
The Tags tab displays all tags assigned to the Elastic IP. You can add new, modify existing, and delete no-longer-needed tags.