Score:0

Proper debian configuration for bridge/tap interface for use with QEMU

us flag

I am having troubles restoring my internet connection after bridging my network and a tap interface.

I am using debian 5.10 and following this guide: https://wiki.debian.org/QEMU#Networking

My original configuration with no bridge with which I have an internet connection is such:

/etc/network/interfaces:
auto ens192
iface ens192 inet static
  address 10.15.10.58
  netmask 255.255.255.0
  gateway 10.15.10.254
  network 10.15.10.0
  broadcast 10.15.10.255

And I updated it to bridge a QEMU instance:

/etc/network/interfaces:
iface ens192 inet manual

auto br0
iface br0 inet static
  address 10.15.10.58
  netmask 255.255.255.0
  gateway 10.15.10.254
  network 10.15.0.0
  broadcast 10.15.10.255
  pre-up ip tuntap add dev tap0 mode tap user staff
  pre-up ip link set tap0 up
  bridge_ports all tap0
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0
  post-down ip link set tap0 down
  post-down ip tuntal del dev tap0 mode tap

The bridge/tap works and I can connect my host machine and my QEMU guest machine; however I lose my internet connection.

Can anyone help show me what I'm missing to restore internet connectivity and preferably bridge my internet to the guest?

Thank you.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.