Random MAC address generation?

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
lapalis
OpenVpn Newbie
Posts: 5
Joined: Tue Mar 22, 2011 5:02 pm

Random MAC address generation?

Post by lapalis » Tue Mar 29, 2011 4:19 pm

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Random MAC address generation?

Post by janjust » Wed Mar 30, 2011 6:15 am

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.

lapalis
OpenVpn Newbie
Posts: 5
Joined: Tue Mar 22, 2011 5:02 pm

Re: Random MAC address generation?

Post by lapalis » Wed Mar 30, 2011 6:23 am

Yes, I have used lladdr to dorce MAC address and resolve the problem.

Thank you for the info about MAC generation

Post Reply