[Top][All Lists]

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

Re: [Qemu-discuss] multiple nic interfaces question

From: Kai Peter
Subject: Re: [Qemu-discuss] multiple nic interfaces question
Date: Wed, 20 Dec 2017 13:34:42 +0100
User-agent: Roundcube Webmail/1.3.2

On 2017-12-19 04:16, Medi Montaseri wrote:

Anyways, I have the following questions:

1- Can I mix -net and -netdev together. Looks like -net is deprecated
You can, but I wouldn't recommend it. What should be the benefit?

2- Say I want to have persistent devices, how to instruct runqemu(1)
or qemu-system-x86_64(1) to stay away from tap creation, and use
existing persistent taps.
Again, what should be the benefit to have them up permanent if not unused?

3- Do you have any suggestions as how to fix this issue.
Assuming your qemu version is up-to-date you can do something like that:

-device virtio-net-pci,netdev=net0,mac=DE:AD:BE:EF:00:01
-netdev tap,id=net0,script=/etc/qemu/qemu-ifup,downscript=/etc/qemu/qemu-ifdown
-device virtio-net-pci,netdev=net1,mac=DE:AD:BE:EF:00:02
-netdev tap,id=net1,script=/etc/qemu/qemu-ifup,downscript=/etc/qemu/qemu-ifdown



Sent with eQmail-1.10

reply via email to

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