qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] Help in understanding the "info network"


From: boddu pavan
Subject: Re: [Qemu-discuss] Help in understanding the "info network"
Date: Wed, 11 Jan 2017 14:02:55 +0000 (UTC)



On Tuesday, January 10, 2017 10:59 PM, Thomas Huth <address@hidden> wrote:


On 10.01.2017 13:47, boddu pavan wrote:
>
>    Hi Thomas,
>
>        On Monday, January 9, 2017 3:01 PM, Thomas Huth
>        <address@hidden> wrote:
[...]
>        If you want to hook up all the NICs to one user network, I think you
>        could do something like this:
>
>        qemu-system-arm ... -net nic,vlan=0 -net nic,vlan=0 -net user,vlan=0
>
>        But using "vlan=..." is rather deprecated nowadays, I think it's
>        better
>        if you'd specify separate user netdevs instead:
>
>        qemu-system-arm ... -net nic,netdev=u0 -netdev user,id=u0 \
>                            -net nic,netdev=u1 -netdev user,id=u1
>
>    [saipava] This will instantiate a new user network for every nic.
>    But i need them all to be in one network to communicate.

Why do you need that? That's like connecting one NIC port of a computer
to another NIC port on the same computer, i.e. some kind of loopback.

>    Can i connect the same network backend to all ?

Not with the "-netdev" parameter - this will give you always a 1:1
connection between emulated NIC and network backend. So if you really,
really need to connect all NICs to the same network backend, you've got
to use the "vlan" hub with "-net", as far as I know.
By doing above, we have a different "user" network connected to each node.  I just though it would be nice to have only one for all.
Basically, i thought it would be good to have only one dhcp server.

info network
address@hidden: index=0,type=nic,
 \ u0: index=0,type=user,net=10.0.2.0,restrict=off
address@hidden: index=0,type=nic,
 \ u1: index=0,type=user,net=10.0.2.0,restrict=off
address@hidden: index=0,type=nic,
 \ u2: index=0,type=user,net=10.0.2.0,restrict=off
address@hidden: index=0,type=nic,
 \ u3: index=0,type=user,net=10.0.2.0,restrict=off



Thomas





reply via email to

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