I'm going to run the following setup with qemu-system as hypervisor:
Hostsetup:
Hypervisor machine (Ubuntu 16.04) Second Machine
qemuVm--tap0--br123--eth0--|Hardware hub|--eth42--SecondPC
So this is a network containing a virtual machine hosted by qemu-system and is connected over a tap interface to a virtual bridge. The virtual bridge is createt by the host. The virtual bridge is NOT the default bridge of libvirt/virt-manager or other systems. The virtual bridge has a real eth0 network card. This network card is connected over wire with a real hub. Connected to the hub is an other Real pc. All clients use static IP-addresses. I would like to use all services like ICMP, UDP, TCP, FTP etc. between all connected machines
IP-list:
win7qemuVm: 10.0.0.10
br123: 10.0.0.100
(I do not want to use the default bridge from qemu)tap0: ?
Is it possible / necessary to assign an ip address?eth0: ?
necessary to assign an ip address?eth42 10.0.0.201
(interface of second pc)
I would like to work with -netdev
/ -device
not with old -net nic
.
Which command line parameters do I need for my win7qemuVm to connect it to the tap-device?
There are IP routes, ipforwarding and iptables. Do I need to change there default ubuntu settings to make such a network possible?
My host network is already configured like that:
iface tap11 inet manual
pre-up tunctl -t tap0
up ifconfig tap0 up
down ifconfig tap0 down
auto br123
iface br123 inet static
address 10.0.0.100
netmask 255.255.255.0
bridge_ports eth0
bridge_ports tap0
bridge_stp off
bridge_fd 0.0
pre-up ifdown eth0
pre-up ifdown tap0
pre-up ifup eth0
pre-up ifup tap0
post-down ifdown eth0
post-down ifdown tap0
The network manager is disabled.