Page 1 of 1

Random MAC address generation?

Posted: Tue Mar 29, 2011 4:19 pm
by lapalis
In reference with topic topic7835.html I have find that openvpn seem to have high probability to generate same MAC address for different clients, so the question is:
someone know how openvpn generate MAC address for tap interfaces in linux device?
Many thanks to everyone for the answer

Re: Random MAC address generation?

Posted: Wed Mar 30, 2011 6:15 am
by janjust
when a TAP device is opened the Linux kernel assigns a random IP address; if this IP address is not-so-random then there's something funny going on with your ARM based kernel. Perhaps the entropy pool, used for generating random numbers, is not large enough or not filled correctly when the system starts.

You can hardwire the MAC address for a tap device using

Code: Select all

lladdr AA:BB:CC:DD:EE:FF
but you'll need to do this for every client.

Re: Random MAC address generation?

Posted: Wed Mar 30, 2011 6:23 am
by lapalis
Yes, I have used lladdr to dorce MAC address and resolve the problem.

Thank you for the info about MAC generation