Im looking for a way to provide a bridge connection between two EC2 instances in the same VPC.
I have one instance (m5d.metal) that host up a number of VMs via KVM and I need to directly connect select VMs on this instance to another instance in the same VPC. These connections must share the same subnet. Basically the connection needs to appear directly connected between them on a given interface.
It is the less complex solution. There is no way to send non-IP packets over AWS network, you have to encapsulate your L2 packets and transfer them over L3 network.
This - there is no L2 in a VPC, nor can you attach an ENI to more than one instance or perform things like a virtual ARP or cluster IP. Each host has to have it own IP address.
If you don’t want to use the main VPC subnet to connect them, you can always create a dedicated cluster subnet and then attach a secondary ENI to each instance.