You are not logged in.
Hello. I have a problem with NICs switching names. I followed Wiki and added 10-network.rules in /etc/udev/rules.d but it seems there is no effect.
/etc/udev/rules.d/10-network.rules
SUBSYSTEM=="net", ATTR{address}=="11:11:11:11:11:11", name="eth0"
SUBSYSTEM=="net", ATTR{address}=="00:11:11:11:11:11", name="eth1"
SUBSYSTEM=="net", ATTR{address}=="00:00:11:11:11:11", name="eth2"
MAC addresses have been hidden but the one in my config are correct.
I have 1 NIC onboard (eth0) and one network card with dual port (eth1,eth2).
Also what is the difference beteen ATTR{address} and ATTRS{address}?
Wiki mentions something about:
With a recent version of udev, this problem should be solved automatically thanks to the /usr/lib/udev/write_net_rules program which runs the 75-persistent-net-generator.rules script which produces a 70-persistent-net.rules.
I can't find any of those files.
Last edited by verb0ss (2012-06-14 17:09:16)
Offline
Um,
Those addresses are supposed to be the actual MAC addresses of your NICs. Did you redact them and just show that collection of 1's and 0's, or is that what your file really looks like? Those addresses above are clearly wrong.
Look at the output of ip addr to see the MACs of your NICs
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Sorry my bad. I should have mentioned it that I've changed MAC addresses. The one in my config file are 100% correct. Maybe change the name of these interfaces for something else like lan0. But I really can't see a reason why should I. That all udev thing is so awkward.
Last edited by verb0ss (2012-06-14 17:13:54)
Offline
In my 10-network.rules, "name" is in all caps. Maybe that's your problem.
SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth0"
SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth1"
SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth2"
SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth3"
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
In my 10-network.rules, "name" is in all caps. Maybe that's your problem.
SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth0" SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth1" SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth2" SUBSYSTEM=="net", ATTR{address}=="##:##:##:##:##:##", NAME="eth3"
I haven't noticed such an obvious thing. I have corrected the config now and i will give it a few days to test it. Thx a lot mate.
Offline