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
Random MAC address generation?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Random MAC address generation?
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
but you'll need to do this for every client.
You can hardwire the MAC address for a tap device using
Code: Select all
lladdr AA:BB:CC:DD:EE:FF
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue Mar 22, 2011 5:02 pm
Re: Random MAC address generation?
Yes, I have used lladdr to dorce MAC address and resolve the problem.
Thank you for the info about MAC generation
Thank you for the info about MAC generation