fixed MAC address on a TAP interface

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
apeg
OpenVPN User
Posts: 22
Joined: Fri May 29, 2015 12:40 am

fixed MAC address on a TAP interface

Post by apeg » Thu Jan 10, 2019 4:54 pm

When clients connect via the TAP interface their mac address is cycled every connection.

Is there a way for the TAP interface to keep the native mac of the client?

Thanks,

bird333
OpenVPN User
Posts: 25
Joined: Wed Nov 05, 2014 2:58 am

Re: fixed MAC address on a TAP interface

Post by bird333 » Fri Jan 11, 2019 8:30 pm

I'm not sure if this is the issue you're having but I had an issue where Windows kept thinking I was joining a new network every time I would connect to Openvpn. The issue was running the server in bridge mode. The bridge will take the MAC address of the lowest addressed member. I solved this by manually setting the MAC address of the TAP interface to an artificially high number that is beyond any of the possible connected clients on startup. I.E. ifconfig tap0 hw ether ee:ee:**:**:**:** That command is for a linux openvpn server. If this is Windows, you will have to find a way to do it there. Hopefully it helps.

apeg
OpenVPN User
Posts: 22
Joined: Fri May 29, 2015 12:40 am

Re: fixed MAC address on a TAP interface

Post by apeg » Sat Jan 12, 2019 1:14 pm

Hi Bird, thanks for the recommendation... i'll give it a try.

if i cant get that to go i may switch back to TUN and give the CCD method a try

Post Reply