in

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 10.10.0.0/16
– Assuming a VPC subnet of 10.10.3.0/24
– Assuming a secondary ENI of 10.10.3.37/32

# echo “200 admin” >> /etc/iproute2/rt_tables
# ip route add default via 10.10.3.1 dev eth0 table admin
# ip rule add from 10.10.3.37/32 table admin
# ip rule add to 10.10.3.37/32 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