You are not logged in.

#1 2014-07-14 18:27:43

Musa
Member
Registered: 2014-07-11
Posts: 3

Accidentally deleted bridge br0 on host, now cannot connect to net

Hi, i'm new to Arch and was doing great getting my install to my liking. I added a bridge which allowed the host and virtual guest to connect to the internet. I'm using qemu & kvm. Then I tried to mount a guest's directory on the host using nfs as I've done previously but ran into trouble. I thought it may have been a problem with the bridge setup so deleted it using the following command

sudo ip link delete br0 type bridge

Since then I've tried recerating the bridge using the wiki but can't even get the host to connect online.

$ sudo ip link add br0 type bridge
$ sudo ip addr add dev br0  192.168.1.100/24
$ sudo ip link set dev enp3s0  master br0
$ sudo systemctl restart NetworkManager

I know the hardware is ok. From the host I can ping the router but cannot ping google.
I haven't been able to solve this yet and at this point, I think I've got myself into a muddle using the wiki and advice from other posts so I'm unsure if I've introduced further problems along the way.

Any help would be much appreciated.

$ sudo ip addr show
 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
    link/ether 00:19:66:e2:af:fd brd ff:ff:ff:ff:ff:ff
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 00:19:66:e2:af:fd brd ff:ff:ff:ff:ff:ff
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 06:6d:6c:76:7a:dc brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
$ sudo brctl show 

bridge name     bridge id               STP enabled     interfaces
br0             8000.001966e2affd       no              enp3s0
virbr0          8000.000000000000       yes
$ cat /etc/qemu/bridge.conf

allow br0
$ cat /etc/netctl/vbridge

Description="Bridge connection for KVM"
Interface=br0
Connection=bridge
BindsToInterfaces=(enp3s0)
IP=dhcp
$ sudo routel

         target            gateway          source    proto    scope    dev tbl
 192.168.122.0/ 24                   192.168.122.1   kernel     link virbr0 
      127.0.0.0          broadcast       127.0.0.1   kernel     link     lo local
     127.0.0.0/ 8            local       127.0.0.1   kernel     host     lo local
      127.0.0.1              local       127.0.0.1   kernel     host     lo local
127.255.255.255          broadcast       127.0.0.1   kernel     link     lo local
  192.168.122.0          broadcast   192.168.122.1   kernel     link virbr0 local
  192.168.122.1              local   192.168.122.1   kernel     host virbr0 local
192.168.122.255          broadcast   192.168.122.1   kernel     link virbr0 local

Thank you for any help you can offer
musa

Offline

Board footer

Powered by FluxBB