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

the mac address on the nanopi-r1 changes from boot to boot #213

Open
GuBi34 opened this issue Feb 14, 2022 · 6 comments
Open

the mac address on the nanopi-r1 changes from boot to boot #213

GuBi34 opened this issue Feb 14, 2022 · 6 comments
Assignees
Milestone

Comments

@GuBi34
Copy link
Contributor

GuBi34 commented Feb 14, 2022

The nanopi-r1 provides every boot a different MAC address.

Reproduction:
Build mtda for nanopi-r1
Flash the card
Boot
Login -> readout ip addr
Power off/on
Login -> readout ip addr

@chombourger
Copy link
Collaborator

and so does the NEO

@GuBi34
Copy link
Contributor Author

GuBi34 commented Feb 14, 2022

On my nanopi-neo tha MAC address appears to be unchanged after power cycling
It is alway registered in the known_hosts and receives the same IP address on my hom router (not so for the nanopi-r1)
so there seem to be some differences.
Obviously the changing MAC causes difficulties at least if the setup is not configured for fixed IP on the device.

@chombourger
Copy link
Collaborator

you could do this:

nmcli con modify 'Wired connection 1' 802-3-ethernet.cloned-mac-address 00:12:34:56:78:9a

for NetworkManager to use a custom MAC address. We can add this to the FAQ
We could also implement a systemd service to somehow derive a MAC address from the serial number of the CPU

@chombourger chombourger self-assigned this Feb 15, 2022
@chombourger chombourger added this to the 0.16 milestone Feb 15, 2022
@GuBi34
Copy link
Contributor Author

GuBi34 commented Feb 15, 2022

Probably the the auto generation of a random MAC provides sufficient added value to be considered?! - anyhow I try to follow your advice to change the connection manually besides of this!

@chombourger
Copy link
Collaborator

Probably the the auto generation of a random MAC provides sufficient added value to be considered?! - anyhow I try to follow your advice to change the connection manually besides of this!

indeed. I have started to work on a systemd service to derive a MAC address from the serial number of the CPU

@chombourger
Copy link
Collaborator

note: not finding to work on this right now :(

@chombourger chombourger modified the milestones: 0.16, 0.17 Feb 25, 2022
@chombourger chombourger modified the milestones: 0.17, 0.18 Jan 4, 2023
@chombourger chombourger modified the milestones: 0.18, 0.19 Jan 23, 2023
@chombourger chombourger modified the milestones: 0.19, 0.20 Feb 28, 2023
@chombourger chombourger modified the milestones: 0.20, 0.21 Aug 8, 2023
@chombourger chombourger modified the milestones: 0.21, 0.23 Sep 26, 2023
@chombourger chombourger modified the milestones: 0.23, 0.24 Oct 13, 2023
@chombourger chombourger modified the milestones: 0.24, 0.31 Feb 14, 2024
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

2 participants