IP Address

You can assign private and public IP addresses to Elastic Compute instances. Instances use these addresses to communicate with other resources and Internet.

Private IPv4 Address

An Elastic Compute instance has one virtual network interface (vNIC) and this vNIC must have one primary private IPv4 address. You can assign up to 10 private IPv4 addresses to one vNIC.

Elastic IPv4 Address

Elastic IPv4 address including the following IP network types, and a private IPv4 address can bind up to 4 single-line elastic IPv4 addresses, including BGP IPs, CN2 IPs or both.

BGP IP

BGP IP is a type of elastic IP address implemented through the Border Gateway Protocol (BGP). It enables users to auto manage their network routes with high flexibility and reliability. BGP IP is suitable for network application scenarios requiring scalability and high availability.

CN2 IP

CN2 IP refers to IP based on the China Telecom network. It provides stable connections through China Telecom's high-quality network infrastructure, making it suitable for users who need to operate in the China region.

Local IP

A local IP address is provided by a local ISP, with its registered location matching the country of the server's data center. It is ideal for applications with strict IP requirements, such as cross-border e-commerce, where a local IP enables smoother registration and operation.

Cogent IP

Cogent IP network type refers to the various high-speed Internet and data transport services offered by Cogent Communications, primarily designed to support enterprise-level connectivity across North America, Europe, and parts of Asia through its global Tier 1 backbone network.

Elastic IP Mode

NAT Mode

NAT Mode utilizes Network Address Translation (NAT) Gateway Mapping to bind an elastic IP to a vNIC. In this mode, the NAT Gateway is responsible for translating the private IP addresses of instances to the public elastic IP for internet access.

When an elastic IP is bound to a vNIC in the NAT Mode, you cannot query this elastic IP in the instance's operating system.

Bypass Mode

Bypass Mode allows an Elastic IP (EIP) to be directly mapped to a compute instance, providing native internet access without passing through security group enforcement.

How it works

  • Direct IP mapping The EIP is bound directly to the instance’s vNIC, enabling high-performance, low-latency internet connectivity.

  • Security group bypass Traffic to and from the instance does not traverse the security group. This reduces processing overhead and can optimize performance in trusted environments.

  • Use cases Recommended for scenarios where external firewalls, on-prem security appliances, or other upstream systems already manage traffic control.

OS visibility

When an EIP is attached to a vNIC in Bypass Mode, the IP is visible directly inside the operating system. You can verify the assigned IP using commands such as:

  • Windows: ipconfig

  • Linux: ip addr or ifconfig

IP Pool

An elastic IP resource pool auto generated with the creation of a CIDR block for exclusive access. A user can have only one IP pool in a region.

CIDR Block IPv4

A CIDR Block IPv4 is a contiguous range of IPv4 addresses that share the same network prefix and bit length. Zenlayer allocates these blocks directly from our global IP pool to support your cloud and networking resources.

Key characteristics

  • Zenlayer-owned IP resources The IPv4 block is owned and managed by Zenlayer. You do not need to bring your own IP space.

  • Flexible assignment Assign these IPs to virtual machines, load balancers, gateways, or other Zenlayer services.

  • Elastic management CIDR blocks can be expanded, reallocated, or released according to your project’s needs and regional availability.

  • Optimized global routing Zenlayer handles all BGP announcements and ensures global reachability and continuity for traffic to and from these IP blocks.

BYOIP (Bring Your Own IP)

BYOIP allows you to onboard and announce your own public IPv4/IPv6 address blocks through Zenlayer’s global edge network. This option is ideal if you require full control over routing policies.

IPv6 Address

If the Elastic Compute instance is connected to a subnet that supports IPv6, its vNIC can also have private IPv6 address or public IPv6 address assigned.

Last updated