Project

General

Profile

Feature #7011

Retain vendor MAC address at power up

Added by Steve Beaver 3 months ago. Updated 24 days ago.

Status:
Resolved
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
12/14/2016
Due date:
% Done:

100%


Description

There are circumstances where it is desirable to be able to read the vendor's MAC addresses on an interface, even if the user has specified another address for spoofing.

The interface vendor MAC addresses should be stored at boot time in such a way that they can be accessed from user space.

Associated revisions

Revision 6ca93df3
Added by Renato Botelho about 2 months ago

Retain vendor MAC address for all interfaces during boot. Ticket #7011

History

#1 Updated by Renato Botelho about 2 months ago

  • Assignee changed from Luiz Otavio O Souza to Renato Botelho

I'll take it

#2 Updated by Renato Botelho about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by NOYB NOYB about 1 month ago

Prefer they be stored in /var/db directory along with some of the other network stuff. Also friendlier for write cycle sensitive media to store in RAM disk since they do not need to survive a reboot.

Also saving to a single file means only having to do one write at bootup. Along with the logic to only use when not booting means the files don't need to be opened during booting.

See PR for additional details.
Vendor MAC Retention, Restore Logic, Consolidate
https://github.com/pfsense/pfsense/pull/3546

#4 Updated by Jim Pingle 24 days ago

  • Status changed from Feedback to Resolved

Works well!

Spoof MAC -> New MAC shows on the interface
Remove spoofed MAC -> Original MAC returns just like we wanted

Spoof MAC again -> New MAC in place
Reboot -> Still has the new MAC
Remove spoofed MAC -> Original MAC returns just like we wanted

Also available in: Atom PDF