Analytic

Monday, August 11, 2008

Ubuntu - Change eth0 to eth1

Edit this file:

vim /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:bf:c8:1b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:bf:c8:1b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

delete eth0 line, and change eth1 line to eth0:

6 comments:

raenio said...

Fu, thanks a lot, I have a software licensed by eth mac address and after moving the system to another virtual center the eth number has changed!!

Anonymous said...

yes its working thanks a lot

Anonymous said...

misspelled "persistent"

Tehrani said...
This comment has been removed by the author.
Anonymous said...

thanks man !

Anonymous said...

Thanks for Sharing! this solved my issue