Hello I have an unusual situation. I am implementing a system on a number of MicroTCA chassis. I have a number of Single Board Computers for those chassis. Each SBC has three Ethernet interfaces and associated MAC addresses. I am running Ubuntu Desktop 16.04 LTS.
I want to have a single SSD image that I can deploy on all the chassis. I want that SSD image to know what static IP address to assign to any of the MAC addresses it sees. That way I can plug any of the SBC into any of the chassis and get the right IP addresses.
I have found that the graphical networking tool in Ubuntu lets me assign static IP by MAC but I do not know where it stores that info. I don't want to click through that tool to make all those assignments for each of the three interfaces on all those SBC.
I have looked at editing
/etc/network/interfaces but it assigns static IP addresses by interface name, ie.
enp13s0. I don't know if these names will be the same on all SBC. On my machines I generally see "enp11s0", "enp12s0" and "enp13s0".
I cannot use an external DHCP server to hand out IP addresses.
Is there a file I can edit to define the mapping of static IP address to MAC address?
Any advice is greatly appreciated.