Gaël Lams skrev:
Hi,
First of all, thanks for the reply.
I'm not sure I see what you're looking for, but if it's the naming of the NIC's, it's made in /etc/udev/rules.d/30-net_persistent_names.rules
Like in one of my boxes, there's a line:
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0c:29:54:a6:44", IMPORT="/lib/udev/rename_netiface %k eth0"
That in short renames "00:0c:29:54:a6:44" to "eth0" for simple use.
In fact I was thinking for something like this but I checked on several of my SuSe Professional 9.3 servers and in /etc/udev/rules.d, what I see is: 20-cdrom.rules 41-usb.rules 45-volume_label.rules 50-udev.rules
It's missing the net_persistent_names files so I'm wondering how it works.
Actually all this interest is due to a problem I've on VMWare virtual machines where configuring the network interface to use another driver (vmxnet) misses up the configuration, ending with a "no configuration found for eth0". Tha'ts why I decided it was time to understand how the whole stuff works.
I discovered that in /sys/class/net/eth0/ there is a link to the corresponding device in /sys/devices and I'm wondering, as there is no persisten_name rule on my SuSe 9.3, how/where this "mapping" between eth0 and, for instance, ifcfg-mac_address, is made.
Aaah.. I missed the 9.3 part.. :) The file I referred to is in v10. Anyway, you can actually rename the file ifcfg-xxxxx to ifcfg-eth0 in your /etc/sysconfig/network directory. I believe I've seen some posts about it on the VMware forums, but unfortunately I can't recall where or what.. But it had some relevance if I'm not mistaken. -- Anders Norrbring Norrbring Consulting