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/
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!