1

I'm using Fedora 25, with kernel 4.11.9, kvm and bridge-utils are installed. I'm following the instructions on http://www.linux-kvm.org/page/Networking#Public_Bridge, to get public bridge. I also have Docker installed on my machine (which creates its own bridges and virtual interfaces).

When I run ip link add br0 type bridge, everything is ok. But after that, when I run ip link set eth0 master br0 my network stop working. The interface eth0 is the interface I use to access the local network and exit to the internet.

What could be going wrong? How can I troubleshoot this?

  • you have to do the ip setup on br0, not eth0. you need to clear ipv4 settings from eth0 beforehand, and set br0 to use that config instead. – Tuncay Göncüoğlu Aug 11 '17 at 14:44
  • Worked like a charm. I've used ip addr del 192.168.64.230/24 dev eth0 and ip addr flush dev eth0 to clear my eth0, repeated the steps and got ir working. Could you please post your comment as the answer so that I can mark it as correct? – Diogo Melo Aug 11 '17 at 14:58
3

When you add your ethernet interface to your bridge, you need to move your ipv4 settings from your eth0 to br0 as well. So, first clear eth0 settings and then give your ipv4/6 addresses/gateway/etc to your br0.

Personally I find it convenient to use NetworkManager's GUI (or TUI) to do this task.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.