Using 2 ENI’s on a VPC instance

To allow traffic to pass in and out of an instance with two elastic network interfaces, manual routes need to be added inside the instance to control TCP/IP traffic:

The following commands can be run to enable routing for a secondary interface:

– Assuming a VPC network of
– Assuming a VPC subnet of
– Assuming a secondary ENI of

# echo “200 admin” >> /etc/iproute2/rt_tables
# ip route add default via dev eth0 table admin
# ip rule add from table admin
# ip rule add to table admin
# ip route flush cache
# ip route show

Leave a Reply

Your email address will not be published. Required fields are marked *

Cara Backup iPhone pada drive lain di Win8

TCL Game IRC 20+ in 1