Bridge virbr0 interface with br0

I’m using Cockpit with libvirtd. My physical LAN is 192.168.0.0/24

4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        inet 192.168.0.24/24 brd 192.168.0.255 scope global br0
       valid_lft forever preferred_lft forever
18: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 10.0.0.1/24 brd 192.168.122.255 scope global virbr0

I want to make 10.0.0.x reachable to all hosts in 192.168.0.x
Not sure if Suse has a quick and easy way to bridge two interfaces, I’ve tried with firewall-cmd but it seems that I can only bridge zones, not interfaces, and even if I try to add interface virbr0 to the same zone as br0 (public), changes don’t take effect.

Anyone can shed some light on how to achieve this?

My idea is to keep all virtual hosts on their own subnet but still accessible through my LAN.

Thanks in advance!

Bridged network interfaces need to be in the same subnet - by definition, they’re all one network, so you’re not bridging IP address ranges (that doesn’t make sense, because you can’t get from 10.x.x.x to 192.168.x.x without having something that routes between them).

1 Like
  1. Forwarding must be enabled on this system (globally and on both interfaces)
  2. Your hosts in 192.168.0.0/24 network need a route entry to the 10.0.0.0/24 network
  3. Your hosts in 10.0.0.0/24 network need a route entry to the 192.168.0.0/24 network
1 Like

Thank you so much @arvidjaar for the help! That actually did it! :raised_hands:

Thank you for the explanation!

1 Like

Thank you for the explanation!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.