Skip to main content

Network Interface

KakaoCloud network interfaces are virtual network cards that allow resources within a VPC to be logically connected and communicate. Users can create, modify, and delete network interfaces, and they can connect a created network interface to an instance within the same availability zone or disconnect an already attached secondary network interface.

info
  • Multiple IP addresses per network interface will be supported in the future.

Components

A network interface consists of the following components:

  • A primary private IPv4 address within the VPC's IPv4 address range
  • A secondary private IPv4 address within the VPC's IPv4 address range
  • A public IP address for each private IPv4 address
  • One or more security groups
  • MAC address

Concepts

The following concepts are important for understanding network interfaces.

1. Primary network interface

The primary network interface refers to the network interface that is automatically created when an instance is created. Each instance must be connected to one primary network interface, and this interface cannot be disconnected from the instance.

2. Secondary network interface

Secondary network interfaces refer to the additional network interfaces attached to an instance, excluding the primary network interface. The maximum number of network interfaces that can be attached to an instance depends on the instance family and size. Secondary network interfaces can be freely added, detached, and disconnected as long as the maximum number of network interfaces allowed per instance is not exceeded.

3. Primary or secondary private IPv4 addresses for a network interface

A primary private IPv4 address is assigned to a network interface within the VPC subnet's CIDR range. Optionally, secondary private IPv4 addresses can also be assigned if needed.

4. Public IPv4 address for a network interface

A public IP address can be associated with the private IPv4 address assigned to the network interface. A network interface with a public IP can communicate externally via the Internet Gateway until the public IP is disassociated.

5. Source/destination check

The source/destination check can be enabled or disabled for each network interface. By default, this setting is enabled, but if the instance connected to this network interface is running a service such as NAT, routing, or a firewall, this function should be disabled.

6. Security group

A security group can be assigned to a network interface. All instance types except Bare Metal Server must have at least one security group. For detailed information on security groups, please refer to Security Group.

Attach network interface

When attaching a network interface, consider the following:

  • Only network interfaces in the same availability zone as the instance can be selected for assignment and attachment.
  • Secondary network interfaces can be detached even when the instance is running, but the primary network interface cannot be detached under any circumstances.
  • The instance must be in an Active or Stopped state when attaching a network interface.
  • A manually assigned private IPv4 address network interface can be created and attached, but the assigned IP address must be within the CIDR range of the VPC subnet where the instance is located.
  • Connecting two or more network interfaces to the same subnet on an instance can cause asymmetric routing issues, which may result in packets being blocked by the firewall. It is recommended to connect network interfaces to different subnets to avoid this.
  • The number of network interfaces that can be attached to an instance depends on the instance family and size.
  • The network bandwidth will not increase even if multiple network interfaces are attached, except for bonding in Bare Metal instances.
  • When using multiple network interfaces, it is generally necessary to configure static routing on the instance.

The number of network interfaces by instance family and size

The maximum number of network interfaces that can be connected varies by instance family and size.

General

The maximum number of network interfaces for each size in the general-purpose instance family is as follows:

Instance FamilySizeMaximum Network Interfaces
m2alarge3
xlarge4
2xlarge4
4xlarge8
8xlarge8
12xlarge8
16xlarge15
24xlarge15
m3azlarge3
xlarge4
2xlarge4
4xlarge8
6xlarge8
8xlarge8
t1inano2
micro2
small2
medium3
large3
xlarge4
2xlarge4

Memory Optimized

The maximum number of network interfaces for each size in the memory-optimized instance family is as follows:

Instance FamilySizeMaximum Network Interfaces
r2alarge3
xlarge4
2xlarge4
4xlarge8
8xlarge8
12xlarge8
16xlarge15
24xlarge15
baremetal2

Compute Optimized

The maximum number of network interfaces for each size in the compute-optimized instance family is as follows:

Instance FamilySizeMaximum Network Interfaces
c2alarge3
xlarge4
2xlarge4
4xlarge8
8xlarge8
12xlarge8
16xlarge15
24xlarge15

Accelerated Computing

The maximum number of network interfaces for each size in the accelerated computing instance family is as follows:

Instance FamilySizeMaximum Network Interfaces
gn1ixlarge3
2xlarge3
4xlarge3
8xlarge4
12xlarge8
16xlarge4
gf1i6xlarge4
12xlarge8
24xlarge15
p1ibaremetal2
p2i6xlarge4
12xlarge8
24xlarge15
p2abaremetal2

Video Transcoding

The maximum number of network interfaces for each size in the video transcoding instance family is as follows:

Instance FamilySizeMaximum Network Interfaces
vt1a4xlarge8
8xlarge8
32xlarge15