Configuring and Mapping Multiple EIPs to ENI Using NAT Gateway

Introduction

Prerequisites

Assign a Private IP to an ENI

aliyuncli ecs AssignPrivateIpAddresses --AccessKeyId xxxxxxxxxxxxxxxxxx --AccessKeySecret nnnnnnnnnnnnnnnnnnnnn --NetworkInterfaceId eni-d7o0bbec73w53nxctkaz --SecondaryPrivateIpAddressCount 8
ifconfig eth0:1 172.16.0.118 netmask 255.255.255.0 up

Configure NAT Gateway

Test Private IP Activation

Test EIP Availability in CPANEL/WHM (Web Hosting Manager)

ifconfig eth0:1 172.16.0.118 netmask 255.255.255.0 up

Conclusion

Further Reading

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store