You are not logged in.
Hi, I have two qemu VM which are connected to internet, via network bridges and get ip from my router. The problem is, whenever I start bridge, I lose connection on host computer. Internet and lan network on VMs works fine. Here is script, which I am using to create bridges. Could you please help modify it, so it enable VM and host computer to have ip assigned from router and to have working internet and lan connection? Thanks.
ip tuntap add dev tap0 mode tap user frees
ip tuntap add dev tap1 mode tap user frees
brctl addbr br0
brctl setfd br0 0.0
brctl addif br0 enp4s0
brctl addif br0 tap0
brctl addif br0 tap1
ip link set dev br0 up
ip link set dev tap0 up
ip link set dev tap1 up
ip addr del 192.168.88.249/24 dev enp4s0
ip addr add 192.168.88.249/24 broadcast + dev br0
ip route add default via 192.168.88.1
Last edited by frees (2016-02-22 23:19:50)
Offline
Firstly, please use code tags to improve readability of terminal output.
Second, define what "I lose connection on host computer" means exactly; including how you're testing and output of those tests, including any error messages.
Third, post the output of the following commands:
ip a s
ip r s
cat /etc/resolv.conf
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline