This topic describes how to set the cut-through mode. When you associate an Elastic IP Address (EIP) with a secondary Elastic Network Interface (ENI), you can select the Cut-Through Mode. In this mode, the EIP replaces the private IP address of the ENI and the ENI becomes a pure Internet network interface. You can see the EIP in the network interface information of the operating system.
Make sure that the following conditions are met before you set the cut-through mode.
- A secondary ENI is created. For more information, see Create an ENI.
- The secondary ENI is not associated with any ECS instance.
If the secondary ENI is already associated with an ECS instance, disassociate the ENI from the ECS instance first. For more information, see Detach an ENI from an instance.
EIPs are a type of NAT IP address. Because the public IP address in the NAT mode exists in the NAT Gateway and is not on the network interface of the ECS instance, you cannot see the public IP address in the operating system and can only see the private IP address. This complicates the operation and maintenance, and the relationship between network interfaces/servers and public IP addresses must be maintained manually. Additionally, when an EIP is deployed as a NAT ALG (NAT application layer gateway), protocols such as H.323, SIP, DNS, and RTSP are not supported.
- The EIP replaces the private IP address of the ENI. The ENI becomes a pure Internet network interface and its intranet functions are not available any more.
- You can see the EIP in the ENI of the operating system, and directly obtain the public IP address on the ENI by running the ifconfig or ipconfig command.
- The EIP supports all IP protocol types, including FTP, H.323, SIP, DNS, RTSP, and TFTP.
- Log on to the VPC console.
- In the left-side navigation pane, choose Elastic IP Addresses.
- Select the region of the target EIP.
Note Currently, the cut-through mode is supported only in the China (Zhangjiakou), China (Shenzhen), China (Hohhot), Germany (Frankfurt), and US (Virginia) regions.
- On the Elastic IP Addresses page, find the target EIP and click Bind in the Actions column.
- On the Bind Elastic IP Address page, complete the following configurations, and then click OK.
Configuration Required? Description Instance Type Yes Select Secondary ENI. Resource Group No Select the resource group to which the EIP belongs. Mode No Select Cut-Through Mode. Secondary ENI Yes Select the secondary ENI to be associated with the EIP.Notice Make sure that the ENI is not associated with any ECS instance.
- Return to the EIP list page and click the ID of the associated ENI.
- On the network interface list page, find the target ENI and click Bind to Instance to associate the ENI with an ECS instance.
- The number of ENIs that can be associated with an ECS instance varies according to the specification of the ECS instance. For more information, see Instance type families.
- After you set the cut-through mode, you must enable the DHCP function of the ECS instance with which the ENI is associated to make the cut-through mode take effect.
- Log on to the ECS instance by using the associated EIP and check the network configurations
of the ECS instance.
Note Make sure that the security group rules of the ECS instance allow remote access.You can see that the local IP address of the ECS instance has changed to the associated EIP.