[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

udev benennt eth1/2 (was: Re: Lenny /etc/network/interfaces und resolv.conf)



Hi!

Ich antworte mal, bin aber bei udev auch nicht der Experte.
Bitte um Korrektur, falls ich Bloedsinn erzaehle ;)!

Jens-Olaf Lindermann <jenslindermann@yahoo.de> writes:

> Feb 26 22:52:23 Hades kernel: [    2.771474] natsemi eth0: NatSemi
> DP8381[56] at 0xd0008000 (0000:00:12.0), 00:0b:cd:a4:1c:bf, IRQ 11, port TP.
> Feb 26 22:52:23 Hades kernel: [    2.926132] udev: renamed network
> interface eth0 to eth2
> Feb 26 22:52:23 Hades kernel: [   16.547357] udev: renamed network
> interface eth0 to eth1
[...]
> Ich weiß nicht, ob das wichtig ist (bin zwar am Lernen, aber immer noch
> "Schüler" in bezug auf Debian). Offensichtlich benennt er mir da ja was
> um. Ist es beside that normal, daß er in /dev keine Netzwerkdevices
> anzeigt, sondern nur loop0 bis 7 (u.anderes) anzeigt?

Wie ich das sehe, ist das normal und richtig so.

,----[ Vgl. http://wiki.debian.org/udev?highlight=%28udev%29 ]
| The kernel informs the udevd daemon when certain events happen. The udevd
| daemon is configured to respond to some events with actions. The event
| information comes from the kernel - the actions happen in userspace.
`----

Wie man sieht, findet der Kernel ein Netzwerk Device nach dem anderen.
Er benennt es ersteinmal eth0. Dann uebernimmt udev und bennent das 
Netzwerk Device um.

Welches Device welche Bezeichnung erhaelt, steht in folgender Datei:

,----[ /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.
| 
| # PCI device 0x8086:0x1031 (e100) SUBSYSTEM=="net", ACTION=="add",
| DRIVERS=="?*", ATTR{address}=="00:09:6b:82:4b:c6", ATTR{type}=="1",
| KERNEL=="eth*", NAME="eth0"
| 
| # Firewire device (nodemgr) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
| ATTR{address}=="00:06:1b:02:01:02:ae:eb", ATTR{type}=="24", KERNEL=="eth*",
| NAME="eth1"
| 
| # PCI device 0x8086:0x1043 (ipw2100) SUBSYSTEM=="net", ACTION=="add",
| DRIVERS=="?*", ATTR{address}=="00:0c:f1:34:5d:fd", ATTR{type}=="1",
| KERNEL=="eth*", NAME="eth1"
`----

Das Device mit der Mac-Addresse 00:0c:f1:34:5d:fd, also meine Wlan Karte,
erhaelt demnach die Zuweisung eth1. 
Ob man das ganz frei aendern kann, werde ich nach einem reboot wisssen;
ich habe gerad testweise NAME="eth0" in NAME="memnon" geaendert ;).

Wieder was gelernt, Danke ;)

hth







Reply to: