qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: PATCH: allow defining MAC address etc


From: jamal
Subject: [Qemu-devel] Re: PATCH: allow defining MAC address etc
Date: Mon, 22 Aug 2005 07:00:41 -0400

And heres a small cleanup on top of that patch.
Just removes and extraneous printfs and makes sure we use the
":" as delimiter for mac address instead of ".". If needed i can resend
the whole thing again with this new cleanup.

cheers,
jamal

On Sun, 2005-21-08 at 21:44 -0400, jamal wrote:
> Ok, here goes as per discussion...
> 
> Please apply.
> This patch is intended for allowing automated clever scripting
> for networking (tuntap only).
> 
> It does the following:
> 1) extends syntax for specifying the macaddr
> 
> Examples:
> 
> a) "-nics 2"
> Which will give you the
>     0x52:0x54:0x00:0x12:0x34:0x56 for the first nic
> and 0x52:0x54:0x00:0x12:0x34:0x57 for the second nic
> 
> b) "-nics 3 -macaddr 00:11:a:0:1:39"
> 
> Which will give first NIC 00:11:a:0:1:39, the second 00:11:a:0:1:3A
> and the third 00:11:a:0:1:3B.
> 
> c) "-nics 2 -macaddr 00:11:a:0:2:19,00:11:a:0:1:19"
> Which will give first NIC 00:11:a:0:2:19, the second 00:11:a:0:1:19
> 
> d) "-nics 3 -macaddr 00:11:a:0:1:39,00:11:a:0:3:19"
> 
> which will give the first NIC a MAC of 00:11:a:0:1:39 the second
> 00:11:a:0:3:19 and the last 00:11:a:0:1:3B
> 
> 2) In addition to receiving the tun device name as $1, the
> net setup script now receives $2 as the guest MAC address.
> One could encode a byte or two in this MAC address for example as a
> message to the host script so that it can do something like prepare a
> route etc
> 
> cheers,
> jamal

Attachment: qemu_p3
Description: Text Data


reply via email to

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