Skip to content

Instantly share code, notes, and snippets.

@gmcclins
Created June 14, 2016 05:54
Show Gist options
  • Save gmcclins/7960b8be99e1f8366d602d67ce861287 to your computer and use it in GitHub Desktop.
Save gmcclins/7960b8be99e1f8366d602d67ce861287 to your computer and use it in GitHub Desktop.
bridged interface setup [lxd]
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto br0
iface br0 inet static
address 192.168.1.22
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4
dns-search digitaltrainwreck.com
bridge-ports enp1s0f1
bridge-ifaces enp1s0f1
iface enp1s0f1 inet manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment