703 B
703 B
Bridges
Bridges can be used to connect virtual machines to networks.
Setup Bridge on Ubuntu
- Install dependencies:
sudo apt install bridge-utils
- 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
- Apply netplan configuration:
sudo netplan apply
- Get the state and the list of bridges in the system:
sudo brctl show