When I inserted a new network card into my Linux computer, the new network interface was named with an incremented number at the end. I didn’t want that as my network setup (firewall rules etc.) were set up for the former name. So I had to change the configuration to rename the new interface.
I found the found the configuration file where the names of the network devices are saved using this command:
cd /etc/ ls `sudo find . -type f -print |xargs grep -l -s "eth2"`
So I edited the file: