From 9ad8900aa3fc23adc6e402d5cfbcde6c7102a420 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Tue, 27 Oct 2020 10:05:14 +0000 Subject: [PATCH] Update qemu.md --- qemu.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qemu.md b/qemu.md index a85b65a..9aba892 100644 --- a/qemu.md +++ b/qemu.md @@ -32,3 +32,19 @@ sudo qemu-system-x86_64 t2.img -m 1G --enable-kvm -nic tap,ifname=veth1,script=n sudo qemu-system-x86_64 t1.img -m 1G --enable-kvm -net nic,macaddr=10:11:11:11:11:11 -net tap,ifname=vnic0,script=no,downscript=no qemu-system-x86_64 -cdrom ~/Downloads/android-x86_64-7.1-r2.iso -boot order=d -drive file=rand.img,format=raw -m 4G ``` + + +## FAQ: Guest machine unable to DHCP on IPv4? + +With wireshark, I realized that my Host::br0 is not forwarding broadcast packets (DHCP). My DHCP packets appears on Host::br0, but disappears on Host::enp3s0. + +Solution: https://unix.stackexchange.com/questions/272146/packets-not-moving-through-linux-ethernet-bridge + +``` +# do not query iptables for package routing +echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables + +# no additional processing for multicast packages +echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_querier +echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping +``` -- GitLab