Project

General

Profile

Actions

Feature #7011

closed

Retain vendor MAC address at power up

Added by Anonymous almost 8 years ago. Updated over 7 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:

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.

Actions #1

Updated by Renato Botelho over 7 years ago

  • Assignee changed from Luiz Souza to Renato Botelho

I'll take it

Actions #2

Updated by Renato Botelho over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by NOYB NOYB over 7 years 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

Actions #4

Updated by Jim Pingle over 7 years 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

Actions #5

Updated by Jim Pingle over 7 years ago

  • Target version changed from 2.4.0 to 2.3.4
Actions

Also available in: Atom PDF