Switch eth0 and eth1, how?

JD jd1008 at gmail.com
Sat Oct 20 01:35:18 UTC 2012


On 10/19/2012 04:18 PM, Frantisek Hanzlik wrote:
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:1e:8c:93:b5:8d", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth0"
>
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:1b:21:69:5f:74", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth1"
I did remove biosdevname package
# rpm -q biosdevname
package biosdevname is not installed

and I have the following in
/etc/udev/rules.d/70-persistent-net.rules


# PCI device 0x1039:0x0900 (sis900)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="edited-out", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*",  NAME="eth0"

and rebooted, and yet I get
$ dmesg | grep em1
[    6.033303] udevd[218]: renamed network interface eth0 to em
# ifconfig eth0
eth0: error fetching interface information: Device not found
# ifconfig em1
em1       Link encap:Ethernet  HWaddr Edited:out
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
           Interrupt:19 Base address:0xd800

So, if and when I upgrade to fc18, (using the upgrade option),
how can I avoid this renaming?




More information about the users mailing list