Member
Registered: Nov 2012
Posts: 32
Rep:
|
How to disable /lib/udev/write_net_rules
Hi Everyone,
How to disable /lib/udev/write_net_rules. This scripts always append unwanted rule I've edited the file /etc/udev/rule.d/70-persistent-net.rules
Here is what it want
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:02:04.0", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:02:05.0", KERNEL=="eth*", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:03:05.0", KERNEL=="eth*", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:03:05.1", KERNEL=="eth*", NAME="eth3"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:0e:00.0", KERNEL=="eth*", NAME="eth4"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:11:00.0", KERNEL=="eth*", NAME="eth5"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:0b:05.0", KERNEL=="eth*", NAME="eth6"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:0b:05.1", KERNEL=="eth*", NAME="eth7"
But when the NIC module is loaded again , the unwanted line append to the file like below.
# PCI device 0x14e4:0x16a8 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:a8:4c:6f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x14e4:0x16aa (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:64:bd:13:86", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
# PCI device 0x14e4:0x16ac (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:6e:b7:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
# PCI device 0x14e4:0x16ac (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:6e:b7:ca", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"
# PCI device 0x14e4:0x16a8 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:a8:4c:6e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x14e4:0x16aa (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:64:be:13:02", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
# PCI device 0x14e4:0x16a8 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:a8:4c:72", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x14e4:0x16a8 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:5e:a8:4c:73", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
So, How can I disable /lib/udev/write_net_rules that ruin my config.
Thank you
|