In this post we will go through the process of creating a Bridged Networking adapter for Ubuntu 22.04.
Add the following lines then save and exit.
/etc/udev/rules.d/99-bridge.rules and add the following line. Save and Exit.
Reboot for the changes to take effect.
Get Network Interface MAC address
We will need the MAC address of your NIC in order to correctly configure the network bridge.
The NIC we will attach the bridge to is enp2s0. The MAC address is listed just after
Create Netplan configuration for the Bridge
Save and exit.
Apply the changes:
Add the bridge to KVM
Create a new file called
bridge.xml with the following contents:
More information can be found about the libvirt XML format at libvirt documentation.
Run the following commands add the bridge to KVM: