How to change the device eth2 to eth0 and vice versa?

Queless

New Member
Nov 13, 2015
23
1
3
It used to be in /etc/udev/rules.d/70-persistent-net.rules but that file apparently doesn't exist with proxmox 4.2. Help please :)
 
Hi,
then create it.

Here is a template

Code:
# PCI device X
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MACAddress>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device X
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MACAddress>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Change the MACAddress in your nic's MACAddress

Here is a link where it is explained
http://www.cyberciti.biz/faq/howto-linux-rename-ethernet-devices-named-using-udev/