I have a MIPSEL machine running on QEMU. In order to enable networking inside my qemu MIPSEL machine, I use a bridge virbr0
.
First, I create the interface tap0 and bring it up. I do it as follows :-
sudo tunctl -t tap0 && sudo ifconfig tap0 up`
Next, I add tap0
and the interface that brings in the internet connection(in this case eth1
) to the bridge.
sudo brctl addif virbr0 tap0
sudo brctl addif virbr0 eth1
Finally, I start off my QEMU machine with the flags -net nic -net tap,ifname=tap0,script=no,downscript=no
.
At this point a couple of things happen.
- I am not able to access the internet connection from my QEMU MIPS machine. It seems to be able to ping
virbr0
andeth1
's ip address, however, it is unable to reach the internet. - The second I add the
eth1
interface tovirbr0
my host loses its ability to connect to the internet. It is able to connect to the internet only if I removeeth1
fromvirbr0
.
How can I solve [1] and/or [2]?
Thanks!