Hi!

I have 2 command lines which I believe should work the same way but they do
not. I run qemu and do "dhclient ; ifconfig" in the guest. Run #1 assigns
10.0.2.15 and 10.0.2.16 (this is what I expected); runs #2/#3 assign
10.0.2.15 to both emulated interfaces in the guest.

Is there any up-to-date description of how networking works in QEMU? Not
sure it is a bug at all, may be some internal qemu kitchen. Thanks.

Run #1:
-net nic,model=virtio
-net user,hostfwd=tcp::5000-:22
-net nic,model=virtio
-net user,hostfwd=tcp::5010-:22

Run #2 - I use new "netdev" syntax for the second device:
-net nic,model=virtio
-net user,hostfwd=tcp::5000-:22
-netdev user,id=virtnet,hostfwd=tcp::5010-:22
-device virtio-net-pci,netdev=virtnet

Run #3 - I use new "netdev" syntax for both devices:
-netdev user,id=virtnet,hostfwd=tcp::5000-:22
-device virtio-net-pci,netdev=virtnet
-netdev user,id=virtnet1,hostfwd=tcp::5010-:22
-device virtio-net-pci,netdev=virtnet1


-- 
Alexey

Reply via email to