You are not logged in.

#1 2016-02-22 22:36:30

frees
Member
Registered: 2016-02-22
Posts: 1

Internet doesn't work on bridges and host computer simultaneously

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

#2 2016-02-22 22:53:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Internet doesn't work on bridges and host computer simultaneously

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

Offline

Board footer

Powered by FluxBB