MATLAB: How to start MATLAB on the Linux computer which does not have any eth* devices

MATLAB

Some Linux does not have eth* devices for activating starting MATLAB. In such computers, I cannot start MATLAB if I activate with the MAC address of the first network card. How can I start MATLAB without errors?

Best Answer

To resolve this issue, you can write rules in /etc/udev/rules.d/70-persistent-net.rules to change the device names to anything you wish. Such will take precedence over this physical location naming scheme. Such rules may look like:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="your mac address", ATTR{type}=="1", KERNEL=="wlan*", NAME=="eth0"
For example, you find your wireless card information as below:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="your mac address", ATTR{type}=="1", KERNEL=="wlan1", NAME=="wlan1"
Then, you are able to change NAME= as:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="your mac address", ATTR{type}=="1", KERNEL=="wlan1", NAME=="eth0"
Note: for KERNEL= you need to enter proper device that is listed on your computer, such as eth* or em* or wlan*
If you are using Red Hat or similar Linux environment, please refer to the related solution "Why can't I activate MATLAB or run the license manager in newer Red Hat Linux environment?" as well.