[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Question about qemu networking
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-devel] Question about qemu networking |
Date: |
Mon, 15 Jul 2013 13:51:30 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] Question about qemu networking,
Alexey Kardashevskiy <=