Skip to content

Instantly share code, notes, and snippets.

@artizirk
Last active December 11, 2018 15:12
Show Gist options
  • Save artizirk/49d11fc40b99ab87db34d1f1966bf0ba to your computer and use it in GitHub Desktop.
Save artizirk/49d11fc40b99ab87db34d1f1966bf0ba to your computer and use it in GitHub Desktop.
libvirt bridge config
# restore with virsh net-define default.xml
<network connections='4'>
<name>default</name>
<uuid>e682f99d-8e87-44e7-bd02-0b8d5ad59b37</uuid>
<forward mode='bridge'/>
<bridge name='br0'/>
</network>
#/etc/systemd/network/br0.netdev
[NetDev]
Name=br0
Kind=bridge
#/etc/systemd/network/br0.network
[Match]
Name=br0
[Network]
DHCP=ipv4
#/etc/systemd/network/en.network
[Match]
Name=en*
[Network]
Bridge=br0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment