Revision history for LinuxUdev


Revision [7323]

Last edited on 2009-01-06 23:42:43 by ToBo
Additions:
udev hat grundsätzlich seine Vorteile. Aber in dem Fall wird das System die alte Karte nie wieder sehen und eth1 soll eigentlich die erste Schnittstelle eth0 werden. Alleine deshalb, weil alles bereits auf eth0 konfiguriert ist und ich mir nicht die Mühe machen möchte alles auf eth1 zu konfigurieren.
bei mir war der Grund der Eintrag unter /etc/udev/rules.d/z25_persistent-net.rules
Neustart
Deletions:
Das hat durchaus Vorteile, in dem Fall wird das System die alte Karte nie wieder sehen und eth1 soll eigentlich die erste Schnittstelle eth0 werden. Schon deshalb, weil alles bereits auf eth0 konfiguriert ist.
bei mir war das unter /etc/udev/rules.d/z25_persistent-net.rules


Revision [7322]

Edited on 2009-01-06 23:37:23 by ToBo
Additions:
=====udev (Linux)=====
man udev
%%
DESCRIPTION
udev provides a dynamic device directory containing only the files for actually present devices. It creates or
removes device node files in the /dev directory, or it renames network interfaces.
Usually udev runs as udevd(8) and receives uevents directly from the kernel if a device is added or removed form
the system.
If udev receives a device event, it matches its configured rules against the available device attributes provided
in sysfs to identify the device. Rules that match, may provide additional device information or specify a device
node name and multiple symlink names and instruct udev to run additional programs as part of the device event
handling.
CONFIGURATION
All udev configuration files are placed in /etc/udev/*. Every file consists of a set of lines of text. All empty
lines or lines beginning with ’#’ will be ignored.
...
%%
Es kommt manchmal vor, das die Netzwekkarte ausgetauscht wird. Dann ordnet das Betriebssystem allerdings der neuen Karte die Gerätebezeichnung eth1 zu, obwohl die alte Netzwekkarte nicht mehr eingebaut ist. Genau dafür sorgt udev - Geräte sollen trotz Änderungen am System ihren Bezeichner behalten bzw. der Bezeichner soll reserviert für ein bestimmtes Gerät sein.
Das hat durchaus Vorteile, in dem Fall wird das System die alte Karte nie wieder sehen und eth1 soll eigentlich die erste Schnittstelle eth0 werden. Schon deshalb, weil alles bereits auf eth0 konfiguriert ist.
mit find lässt sich zunächst der Eintrag lokalisieren
%%(bash)
# find /etc/ -type f | xargs grep eth0
%%
bei mir war das unter /etc/udev/rules.d/z25_persistent-net.rules
%%(bash;;/etc/udev/rules.d/z25_persistent-net.rules)
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:60:94:25:d6:fd", NAME="eth0"
# PCI device
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:ff:4c:da:4f", NAME="eth1"
%%
Also dein Eintrag mit eth0 löschen
und eth1 in eth0 umbenennen
%%(bash;;/etc/udev/rules.d/z25_persistent-net.rules)
# PCI device
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:ff:4c:da:4f", NAME="eth0"
%%
%%(bash)
init 6
%%
Deletions:
=====Titel=====


Revision [7321]

The oldest known version of this page was created on 2009-01-06 23:24:28 by ToBo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki