qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] tun/tap networking: patch for existing tun


From: Jean-Christian de Rivaz
Subject: Re: [Qemu-devel] tun/tap networking: patch for existing tun
Date: Mon, 03 Oct 2005 16:14:21 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050817)

Henrik Nordstrom a écrit :
On Mon, 3 Oct 2005, Jean-Christian de Rivaz wrote:

The idea of the "-vde" option is to have in parameter the VDE socket (default to "/tmp/vde.ctl") an act like vde_plug so it don't need any other code to work. Just start a "vde_switch" and as many "qemu -vde" you wants to create a complete virtual nework (1 switch and n hosts).


Or in line with the earlier proposal of a -net option:

  -net vde,socket=/path/to/vde.ctl,group=xxx

where socket defaults to /tmp/vde.ctl and group defaults to 0 if not specified.

Nice.

I think that a syntax like "-net type[:macaddr][,arg[,arg[...]]]" is more usefull, since the MAC addresse of the TAP devices is not alway specified as it can be set randomly by the Linux kernel (with possible collision see code in include/linux/etherdevice.h).


The MAC of the TUN/TAP device on the host side is a completely different thing and is the MAC the HOST should use on that virtual ethernet. What the option to QEMU specifies is the MAC QEMU should use.

Ok. I was wrong sorry.

In case of this new interface, will network script still needed. If yes, how should we handle them in the new option syntax ?


-net ...,script=/path/to/script

Ok, can't be more clean.

--
Jean-Christian de Rivaz




reply via email to

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