Free Hosting Online for WorkStations

< Previous | Contents | Next >

1.4. Bridging‌


Bridging multiple interfaces is a more advanced configuration, but is very useful in multiple scenarios. One scenario is setting up a bridge with multiple network interfaces, then using a firewall to filter traffic between two network segments. Another scenario is using bridge on a system with one interface to allow virtual machines direct access to the outside network. The following example covers the latter scenario.


Configure the bridge by editing your netplan configuration found in /etc/netplan/:


network: version: 2



renderer: networkd ethernets:

enp3s0: dhcp4: no

bridges: br0:

dhcp4: yes interfaces:

- enp3s0


Enter the appropriate values for your physical interface and network.


Now apply the configuration to enable the bridge:


sudo netplan apply


The new bridge interface should now be up and running. The brctl provides useful information about the state of the bridge, controls which interfaces are part of the bridge, etc. See man brctl for more information.


Top OS Cloud Computing at OnWorks: