VirtWeb/virtweb_docs/BRIDGE.md

703 B

Bridges

Bridges can be used to connect virtual machines to networks.

Setup Bridge on Ubuntu

  1. Install dependencies:
sudo apt install bridge-utils
  1. Adapt your netplan configuration to set the following:
network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0:
      dhcp4: no
  bridges:
    br0: # Bridge name
      dhcp4: yes
      interfaces:
         - enp2s0 # Set to your interface
  1. Apply netplan configuration:
sudo netplan apply
  1. Get the state and the list of bridges in the system:
sudo brctl show

Reference

How to Configure Network Bridge in Ubuntu