Skip to content

Instantly share code, notes, and snippets.

@suntong
Created July 5, 2023 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suntong/268a12d8f725426a702123e8272f7a4f to your computer and use it in GitHub Desktop.
Save suntong/268a12d8f725426a702123e8272f7a4f to your computer and use it in GitHub Desktop.
# Initially generated on boot by initramfs,
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
# Specify that the physical interface that should be connected to the bridge
# should be configured manually, to avoid conflicts with NetworkManager
allow-hotplug eth0
iface eth0 inet manual
# The br0 bridge settings
auto br0
iface br0 inet static
bridge_ports eth0
address 192.168.0.IP
broadcast 192.168.0.255
netmask 255.255.255.0
gateway 192.168.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment