qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Private LAN between machines


From: Narcis Garcia
Subject: [Qemu-discuss] Private LAN between machines
Date: Mon, 21 May 2018 13:01:36 +0200

Hello all;

How can I connect 2 virtual machines (user mode) to same private LAN
(using Qemu 2.8.1)?

Am I right with this syntax?

$ qemu -device e1000,netdev=nic0 -netdev user,id=nic0,vlan=hub0, -netdev
hubport,id=nic0,hubid=hub0 -drive file=machine*1*.img

$ qemu -device e1000,netdev=nic0 -netdev user,id=nic0,vlan=hub0, -netdev
hubport,id=nic0,hubid=hub0 -drive file=machine*2*.img

I'm trying that each machine gets it's own IP (eg. 10.0.2.15, 10.0.2.16)
and they can see between them.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]