I need to install a software (iCEcube2 from Lattice Semiconductor) on a Ubuntu 20.04 machine. Apparently there is something hardcoded in this software related to license checking that requires the computer to be connected to the internet via a connection with name "eth0" (link). I have tried creating the file /etc/udev/rules.d/70-persistent-net.rules
with the following content
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
where XX:XX:XX:XX:XX:XX
is actually my MAC address. After this I restarted the computer. It does not work. I also tried the method described in the link before under the title License checkout failed: hostid of this system does not match the hostid.
The option 1. in this SO answer, i.e. sudo ip link set wlp2s0 name eth0
works, however it is temporal.
On the TinyFPGA forum it is suggested to use 2 lines, not 1:
where
ip link show
can be used to show what {mac} needs to be what is shown at the name it is shown now for your NIC.If they are temporary your settings are likely rewritten by networkmanager, a dhcp server, dhclient, and/or another tool. You would need to disable that
or
you could add those 2 lines to
/etc/crontab
.