Skip to content

Instantly share code, notes, and snippets.

@sunner
Created January 22, 2012 01:01
Show Gist options
  • Save sunner/1654859 to your computer and use it in GitHub Desktop.
Save sunner/1654859 to your computer and use it in GitHub Desktop.
Add a bridged network interface in debian
# Replace "auto eth0 ..." with following lines in /etc/network/interfaces
# The primary network interface
auto br0
iface br0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers xxx.xxx.xxx.xxx
dns-search domain.name
bridge_ports eth0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment