Hello there,

I’m working on installation CD with SLES10. Several x_64 machines will be later installed from that CD. They all are going to be equipped with 3 physical NIC (two doubles and one quad), all together 8 Ethernet sockets. (eth0, …, eyh7). Problem is that different ethn are assigned to different cards every time system restarts. It has to be assigned exactly to the some physical spot every time system reboots.
On the back of the machine we can see Ethernet ports numbered 1 to 8, and I want then to be respectably eth0 to eth7. How do I do that ?
Solution we tried:
I have to recognize NIC’s somehow, by MAC address is out of the question, because , in different servers MAC’s would be different and OS is supposed to be installed from specially prepared CD (automated installation) no manual tweaking after installation.

Because all servers will have the some hardware, and the some NIC’s, I have thought about recognizing them by PCI slots:
0000:06:00.0 double NIC
0000:06:00.1
0000:09:00.0 double NIC
0000:09:00.1
0000:0d:00.0 quad NIC
0000:0d:00:1
0000:0e:00.0
0000:0e:00:1

I’m assuming that each card will be assigned always to the some slot, interchangeably.
So I have followed:
7.13.*Configuring the network Script
and add to my 30-net_persistent_names.rules:

SUBSYSTEM==”net”, ACTION==”add”, BUS==”pci”, KERNELS==”0000:06:00.0”, IMPORT=”/lib/udev/rename_netiface %k slot1”
SUBSYSTEM==”net”, ACTION==”add”, BUS==”pci”, KERNELS==”0000:06:00.1”, IMPORT=”/lib/udev/rename_netiface %k slot2

Unfortunately it does not work. SLES are still adding rules for MAC. Deleting /etc/udev/rules.d/31-network.rules do not help it is being recreated again.
Any help would be greatly appreciated.

Regards
Slawomir