Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As I noted in my comment on Bernd's answer, I've been doing this for years and have never had the nics out of order, but it sounds like that's not something you can necessarily rely on.

I will also mention that in my experience putting two nics on the same network can create some weird routing issues in the instance, so if you can you may want to move the ovs port to a separate network, and then you'd be able to tell which nic is which by looking at the DHCP-assigned address.

Also be aware that most cloud images will only DHCP the first interface on the instance (as you can see in your ifconfig output), so you'll need to have your user_data script DHCP any extra interfaces.