(unknown)

"snowyxx" <[email protected]>
Newsgroups gmane.linux.hotplug.devel
Message-ID <001401ce422e$b1622090$142661b0$@com>
Hi Boss,
So sorry to mail you in this rude way (if you look into this mail, I know is
not support mail, but god guide missing people, right?  )
I am finding a solution to my problem….
I have some machines with 8 net interfaces, I want to name one as eth0, I
need a solution to work for all machine ( I will clone OS from one to
others), so I could not just modify the rule file under /etc/udev/rules.d 

I need setup a math condition works for all machine. 
I want to change  /lib/udev/rules.d/75-persistent-net-generator.rules file
to only match MACs
But my problem is that interface names turn out did not ordered by MACs,
It suppose  00:0d:48:08:92:9a named as eth0, but not.

Is there any way to let interfaces named by MACs order? 

root@APM:~# dmesg |grep eth
[   10.429663] e1000e 0000:03:00.0: eth0: (PCI Express:2.5GB/s:Width x4)
00:0d:48:08:92:9b
[   10.429665] e1000e 0000:03:00.0: eth0: Intel(R) PRO/1000 Network
Connection
[   10.429742] e1000e 0000:03:00.0: eth0: MAC: 0, PHY: 1, PBA No: C85839-002
[   12.421678] e1000e 0000:03:00.1: eth1: (PCI Express:2.5GB/s:Width x4)
00:0d:48:08:92:9a
[   12.421680] e1000e 0000:03:00.1: eth1: Intel(R) PRO/1000 Network
Connection
[   12.421756] e1000e 0000:03:00.1: eth1: MAC: 0, PHY: 1, PBA No: C85839-002
[   16.061712] e1000e 0000:04:00.0: eth2: (PCI Express:2.5GB/s:Width x4)
00:0d:48:08:92:9d
[   16.061714] e1000e 0000:04:00.0: eth2: Intel(R) PRO/1000 Network
Connection
[   16.061791] e1000e 0000:04:00.0: eth2: MAC: 0, PHY: 1, PBA No: C85839-002
[   17.041738] e1000e 0000:04:00.1: eth3: (PCI Express:2.5GB/s:Width x4)
00:0d:48:08:92:9c
[   17.041740] e1000e 0000:04:00.1: eth3: Intel(R) PRO/1000 Network
Connection
[   17.041817] e1000e 0000:04:00.1: eth3: MAC: 0, PHY: 1, PBA No: C85839-002
[   17.582614] e1000e 0000:08:00.0: eth4: (PCI Express:2.5GB/s:Width x1)
00:0d:48:27:86:9d
[   17.582616] e1000e 0000:08:00.0: eth4: Intel(R) PRO/1000 Network
Connection
[   17.582694] e1000e 0000:08:00.0: eth4: MAC: 4, PHY: 8, PBA No: FFFFFF-0FF
[   17.697014] e1000e 0000:07:00.0: eth5: (PCI Express:2.5GB/s:Width x1)
00:0d:48:27:86:9c
[   17.697016] e1000e 0000:07:00.0: eth5: Intel(R) PRO/1000 Network
Connection
[   17.697094] e1000e 0000:07:00.0: eth5: MAC: 4, PHY: 8, PBA No: FFFFFF-0FF
[   17.818793] e1000e 0000:06:00.0: eth6: (PCI Express:2.5GB/s:Width x1)
00:0d:48:27:86:9b
[   17.818794] e1000e 0000:06:00.0: eth6: Intel(R) PRO/1000 Network
Connection
[   17.818872] e1000e 0000:06:00.0: eth6: MAC: 4, PHY: 8, PBA No: FFFFFF-0FF
[   17.938778] e1000e 0000:05:00.0: eth7: (PCI Express:2.5GB/s:Width x1)
00:0d:48:27:86:9a
[   17.938780] e1000e 0000:05:00.0: eth7: Intel(R) PRO/1000 Network
Connection
[   17.938859] e1000e 0000:05:00.0: eth7: MAC: 4, PHY: 8, PBA No: FFFFFF-0FF


Yan Xiao








--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.