Port of Amazon's ec2-net-utils scripts to Debian/Ubuntu for automatically configuring additional AWS Elastic Network Interfaces.
Amazon's description of these tools:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#ec2-net-utils
Launchpad Bug:
https://bugs.launchpad.net/cloud-init/+bug/1153626/
Some discussion of the problem:
http://blog.bluemalkin.net/multiple-ips-and-enis-on-ec2-in-a-vpc/
Use the Makefile to install the files.
To configure eth1
, for example:
env INTERFACE=eth1 ACTION=add /etc/network/ec2net.hotplug add
Note that this configuration will survive a reboot.