Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Add support for permanent/hardware MAC address #15

Open
joaoantoniocardoso opened this issue Sep 9, 2023 · 0 comments

Comments

@joaoantoniocardoso
Copy link
Contributor

The current method, using cat /sys/class/net/$INTERFACE/address, returns the current MAC address, which can easily be changed.

The hardware MAC, also called permanent, however, is still available, and can be preferable in many applications.

Here's how ethtool and macchanger get the permanent MAC address, but since we are here using external tools, we could build a function to simply call ethtool -P $INTERFACE.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant