I suggest that we add a MACADDR property to every key in the networks DB. But in this case all scripts like “nethserver-cockpit/api/system-network/create” would have to be adjusted. That’s why I think we should discuss it first.
Why this proposal?
Nethserver still doesn’t embrace IPv6 very well. You can set a static IPv4-address but you can’t do the same for IPv6. That’s not completely wrong because IPv6 works differently. First you have to have privacy extensions disabled. Otherwise your IPv6-address will change from time to time even if your prefix doesn’t (the part of your address that’s given to you by your ISP in most cases). But that’s not enough. Your Nethserver probably doesn’t use your NIC directly but runs your network in bridged mode. This device (e.g. br0) doesn’t come with a physical MAC-address so every time it’s freshly initiated the MAC-address changes. And every time your MAC changes so does your IPv6-address. You can stop this if you add a MACADDR entry to your ifcfg-br0 network script (not HWADDR because it’s not an actual NIC).
Your IPv6-address depends on it, so you should be able to control it.
There would be one single place to control your IP-addresses - IPv4 and IPv6.
What do you think?