I decided to do a clean install of 15.10, and as a result, need to reinstall MATLAB. MATLAB licenses are tied to the the eth0 hardware address.
My Ethernet card is listed as enp1s0, and I need to rename it to eth0. only lo is listed in /etc/network/interfaces
, and /etc/udev/rules.d/70-persistent-net.rules
does not exist, so I'm unsure where to start.
udev
rule to rename the interface aseth0
..lets say the MAC address of the interface isxx:XX:xx:YY:yy:ZZ
then you can create a file in/etc/udev/rules.d/
e.g.99-rename-net.rules
and putSUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:XX:xx:YY:yy:ZZ", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
in the file..if you don't know the MAC address then you can get it from/sys/class/net/enp1so/address
file...link
files, but some others suggested that this did not work for them. It most likely did not work because after editing the link files the initramfs must be updated. So, follow @jndz's answer first, and then follow the answer I linked above.