I'd like to create a bridge in my EC2 instance and to associate an IP address to it.
Given the default
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
I simply add to the end of it:
auto br0 iface br0 inet static address 10.0.3.1 netmask 255.255.255.0 bridge_ports eth0 bridge_stp off bridge_maxwait 0 post-up brctl setfd br0 0
As soon as I restart the network or simply run
ifup br0, I lose connectivity to the EC2 instance (i.e. I cannot SSH into it anymore).
What could be the reason?