How to do I configure a Linux bridge and libvirt network such that the host and guests can both use the same interface for communication.
I have Rocky Linux installed on an Intel NUC.
I created a bride using the network adapter eno1. I can ping and communicate (SSH/Cockpit) with the IP address assigned to the bridge interface just fine. As soon as I define a virsh network then start it, I lose connectivity to the host.
→ Host bridge config:
cat > “/etc/sysconfig/network-scripts/ifcfg-vmbridge0”<<EOF
cat > “/etc/sysconfig/network-scripts/ifcfg-$vmInt”<<EOF
→ libvirt net setup
cat > “$HOME/net-default.xml” <<EOF
virsh net-define “$HOME/net-default.xml”
virsh net-start default