Re: virtual interface mac adress

From: Stephen Hemminger
Date: Mon Dec 05 2005 - 13:01:49 EST


On Sun, 4 Dec 2005 11:29:58 -0800 (PST)
anil dahiya <ak_ait@xxxxxxxxx> wrote:

> Hi
> I want to assign mac addres to virtual adpater and mac
> address should be like that if it should not create
> problem in arp resoultion(i.e. mac address should be
> as real card which able to comunicate on lan )
>
> waiting for ur reply,
> Anil
>

use random_ether_addr (see include/linux/etherdevice.h)

--
Stephen Hemminger <shemminger@xxxxxxxx>
OSDL http://developer.osdl.org/~shemminger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/