Sorry, you need to enable JavaScript to visit this website.

How did I renamed NIC name 'enp3s0' to 'eth0' to get licencsed on linux

Solved
2 posts / 0 new
liyumove's picture
liyumove
Junior(0)
How did I renamed NIC name 'enp3s0' to 'eth0' to get licencsed on linux

If you are fresh to using Linux for development, like me, you may find the below are useful. 

 

Some versions of `VIVADO License Manager `, like 2017.1, requires the NIC to be named like 'eth0' to be recognized to get licensed.

 

However, in latest stable version of Linux, like Ubuntu 16.04 LTS, the style like 'enp3s0' is used by default.

 

So we may want to change our NIC name back to 'eth{$}' style to get licensed.

 

Here is how I did:

1. [Ctrl+Alt+T] to open an terminal and type `ifconfig` to get your NIC information. Find your `HWaddr` info, a.k.a mac address, in the output. 

 

For instance, a output like:

 

`

enp3s0    Link encap:Ethernet  HWaddr 70:8b:11:11:11:11

          inet addr:192.168.10.27  Bcast:192.168.10.255  Mask:255.255.255.0

`

 

Shows the `enp3s0` NIC 's  mac address is `70:8b:11:11:11:11`

 

2. in the terminal, `sudo gedit /etc/udev/rules.d/70-persistent-net.rules` to create and open a new configuration, then add `SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="70:8b:11:11:11:11", NAME="eth0"` as its first(and only) line.

 

Do change `70:8b:11:11:11:11` to your own mac address.

 

Then reboot, and `ifconfig` to verify the NIC is changed

 

Tested on Ubuntu 16.04 LTS 64bit with VIVADO License Manager 2017.1

hannahbb's picture
hannahbb
Junior(0)
Very nice workaround 

Very nice workaround @liyumove, VIVADO LM finally got licensed properly on my ubuntu 15.10 WW ^^ 

Best regards,
Hank