Public IP
A public IP is a fixed address accessible from the internet. By connecting resources deployed in the user's network to a public IP, the user's services can be made publicly accessible on the internet. These resources can then be accessed through the internet.
Item | Description |
---|---|
IP Address | Users cannot select the IP address. - When users create a public IP, one of KakaoCloud's reserved public IP ranges is allocated to the user's project. |
Connected Resources | Resources deployed in the user's network can be connected to the public IP. - Resources that can be connected: Virtual Machine instances, specific interfaces of Bare Metal Server instances, load balancers. |
Basics
-
Adding an Internet Gateway to the routing table of a VPC and connecting a public IP to an instance allows internet access.
-
A public IP is a static address, meaning the IP address does not change.
-
When a public IP is connected to an instance, it is attached to the instance's primary network interface.
-
Public IPs can be moved between instances or network interfaces.
-
Public IPs incur charges continuously from the time they are created until they are deleted.
-
To save IP addresses, consider using a NAT instance.
IP address range
Resources within a VPC are assigned IP addresses, allowing them to communicate with each other or other resources via the internet. IP addresses follow Classless Inter-Domain Routing (CIDR) notation, with IPv4 consisting of 32 bits divided into four sections, represented in decimal (e.g., 10.0.0.0).
When creating a VPC or subnet, the assignment must fall within the supported range of IPv4 CIDR blocks. For more details, refer to the Private Address Space section of RFC 1918.
IPv4 CIDR blocks consist of four decimal numbers (ranging from 0 to 255) separated by dots, followed by a slash (/) and a decimal number between 0 and 32, representing the bit mask (e.g., 10.0.0.0/16).
Supported IPv4 ranges
Attribute | IPv4 |
---|---|
IPv4 CIDR | Choose an IPv4 CIDR block for the VPC |
VPC Prefix | /16 ~ /24 |
Subnet Prefix | /20 ~ /24 |
Public IP | Supported |