Sample Header Ad - 728x90

Set up Debian networking bridge with DHCP

3 votes
1 answer
11946 views
After a recent bout of package upgrades (but still within the stretch release) my bridge networking to support libvirt VMs seems to have died - the DHCP server does not send an IP to the host nor does the host have any network connectivity. Previously my /etc/network/interfaces file worked great (as has been recommended in the the Debian wiki ):
iface eth0 inet manual

auto br0
iface br0 inet dhcp
  bridge_ports eth0
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0
Alas, when I try to bring it up using ifup br0 or systemctl restart networking I get very unhelpful log messages like ifup: failed to bring up eth0. Most strangely, if I set a static IP on the br0 interface everything works great, but I'd like to configure my static IPs in the router rather than the host OS. This is the workaround static IP configuration, closely modeled after the [libvirt networking guide](https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html) .
iface eth0 inet manual

auto br0
iface br0 inet static
  bridge_ports eth0
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0
  hwaddress ether e0:3f:49:eb:7f:35
  address 192.168.1.140
  gateway 192.168.1.1
  broadcast 192.168.1.255
  netmask 255.255.255.0
Also, if I remove the bridge entirely and just configure eth0 to directly use dhcp the host will receive an address from the router. Any thoughts on what I can do to further troubleshoot or fix the issue? Thanks!
Asked by Aaron Kanter (31 rep)
Jun 29, 2020, 08:54 AM
Last activity: Apr 8, 2025, 01:13 AM