Virtualization

Give a KVM VM Direct LAN Access With a Linux Bridge

Inventory the existing physical bridge without changing it; Attach a disposable guest interface to br0; Validate a LAN address and two-way reachability; Remove the interface without interrupting host management.

By InventiveHQ Team

Episode 13 of the InventiveHQ KVM virtualization series.

Lab verified July 2026 · Ubuntu 26.04 · libvirt 12.0.0 · QEMU 10.2.1

What this episode proves

  • Inventory the existing physical bridge without changing it
  • Attach a disposable guest interface to br0
  • Validate a LAN address and two-way reachability
  • Remove the interface without interrupting host management

Validated workflow

1. Inventory the existing physical bridge without changing it

virsh attach-interface ihq-kvm-ep02 bridge br0 --model virtio --live

2. Attach a disposable guest interface to br0

ip address show enp7s0

3. Validate a LAN address and two-way reachability

ping -c 3 192.168.1.1

4. Remove the interface without interrupting host management

virsh detach-interface ihq-kvm-ep02 bridge --mac 52:54:00:71:13:01 --live

Finished state

The teaching guest retains private networks; the bridged test interface is removed after proof. The public scripts contain no private keys, passwords, or tokens. Review names, addresses, paths, ownership, backups, quorum, and fencing for your own environment before running them.

Need help from an IT & cybersecurity partner?

InventiveHQ helps businesses secure, modernize, and run their technology. Let's talk about your goals.

Get in touch