my NanoPI NEO v1.4 comes up with a random MAC address on each boot. This causes the DHCP server to assign a new IP every time, even though I marked that (first) MAC to get the same IP every time in my router.
I solved this by adding a small config file in the "interfaces.d" folder (so it does not get overwritten by config tools later ...), like so:
Now I wonder if that is the right solution?!
Code: Select all
$ cat /etc/network/interfaces.d/10-staticmac iface eth0 inet dhcp hwaddress ether 82:E3:A3:BB:39:34
Surely I am not the first who wants a static IP obtained via DHCP, i.e. without configuring everything static?
I did search a bit, but I must have missed that?!
Any pointers welcome. Thx.