I’m trying to set up a qemu guest with tap networking with no luck. I’m following chapter 30 of the guide pretty closely and everything except the network seems to work as expected; user mode networking also works fine, but is not what I need.
The details are in the attached files (qemu command line, host tap0
configuration, host bridge0 configuration, and guest vioif0 configuration and
routing table), but a few points.
The qemu network is set up as
-netdev tap,id=vioif0,ifname=tap0,script=no -device
virtio-net-pci,netdev=vioif0
The host tap0 interface has a MAC address of f2:0b:a4:70:18:82, and the guest
vioif0 interface has a MAC address of 52:54:00:12:34:56. The latter is what
shows up on the bridge; should they match? When I add mac=f2:0b:a4:70:18:82 to
-device, the network still does not work.
I expected the guest to see traffic on its interface from the bridge (it should
be passing all traffic, right?), but there is nothing, and I cannot ping even
the host IP address.
Also, the host has no route pointing to the tap0 interface. Should there be
one? If so, how should it be created? Should there be an IP address on the
host tap0 interface?
I’m sure there is something obviously incorrect in my configuration, but I’m
not seeing it. Any help is greatly appreciated.
Thanks a lot.
Cheers,
Brook
qemu
Description: Binary data
tap0
Description: Binary data
bridge0
Description: Binary data
vioif0
Description: Binary data
