Skip to content

Instantly share code, notes, and snippets.

@mikewebb70
Created May 19, 2018 06:43
Show Gist options
  • Save mikewebb70/c46be8216e8f1594b1077f3d5220c22b to your computer and use it in GitHub Desktop.
Save mikewebb70/c46be8216e8f1594b1077f3d5220c22b to your computer and use it in GitHub Desktop.
# Let networkd manage all devices on this system
network:
version: 2
renderer: networkd
ethernets:
#declare the interface used y the bridge device
enp7s0:
dhcp4: no
dhcp6: no
# Create the bridge device
bridges:
br0:
interfaces: [enp7s0]
dhcp4: true
dhcp6: no
@Niazwali
Copy link

Thanks mikewebb70, I want to create a bridge 'br0' from two ethernet interfaces 'eno1' and 'eno2' with a static ip assigned to the 'br0', can you send me a reconfigured example on [email protected]

@Plorax
Copy link

Plorax commented Mar 25, 2020

Hey guys. Niaz I'm having to do the same. Please won't you paste your config here or send it to me because I'm also struggling with the same setup. I have a host machine, running VMs inside virtualbox. The only way I can communicate with the VMs is if I setup a Host-Only adapter on VirtualBox. If I set the network adapter's to be Bridged on virtualbox for each vm then I can't access the VMs. Their subnet don't match the host's subnet, so I'd like to keep it that way but still give my VMs internet access. I was thinking a bridge network adapter on the host would allow that. Am I right ? my email address is jacques at bchain dot co dot za

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment