|
From: Serge L. <fi...@in...> - 2009-09-02 02:52:56
|
Hello Bradlee,
Bradlee Landis wrote:
> How does devil linux decide how to order the ethernet devices?
To be precise, it does not DL, but udev subsystem. The answer on your question
is somewhere inside '/lib/udev/write_net_rules' (it's shell script) :-)
> installed it on about 10 servers, and it does it the same way every
> time:
> Physical Device
> 1 eth2
> 2 eth3
> 3 eth0
> 4 eth1
> 5 eth7
> 6 eth6
> 7 eth5
> 8 eth4
You can check the order of your NICS in
'/etc/udev/rules.d/70-persistent-net.rules' file (and change the order, if you
want).
On my system it looks like the following:
root@Devil:~ # cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8169 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:14:d1:16:ab:c5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:0a:e6:88:8f:4d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Sincerely,
Serge
|