Re: Frage: WLAN tut nur nach magischer Prozedur (Kernel, udev, ifupdown)
On Wed, 30 Jul 2008 11:26:46 +0200, Jörg Sommer <joerg@alea.gnuu.de> wrote:
Hallo Tilo,
Tilo Schwarz <tilo@tilo-schwarz.de> wrote:
So, ich habe bei booten immer die Meldung
# dmesg |grep udev
[ 7.657573] udev: renamed network interface wmaster0 to eth2
Ungefähr gleich oft ist aber eth2 das wireless Device, und wlan0_rename
nicht (obwohl udev immer die rename-Meldung bringt).
Das hört sich nach udev an. Was steht in
/etc/udev/rules.d/*persistent-net* ? Sind da vielleicht zwei Regeln, die
sich gegenseitig stören?
Also, ich hab hier:
% cat /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.
# PCI device 0x14e4:0x170c (b44)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:15:c5:b8:36:d1",
NAME="eth0"
# Firewire device (ohci1394)
SUBSYSTEM=="net", DRIVERS=="?*",
ATTRS{address}=="42:4f:c0:00:02:2b:bc:50", NAME="eth1"
# PCI device 0x8086:0x4222 (ipw3945)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:18:de:69:02:88",
NAME="eth2"
und
% cat /etc/udev/rules.d/z45_persistent-net-generator.rules
# These rules generate rules to keep network interface names unchanged
# across reboots write them to /etc/udev/rules.d/z25_persistent-net.rules.
#
# The default name for this file is z45_persistent-net-generator.rules.
ACTION!="add", GOTO="persistent_net_generator_end"
SUBSYSTEM!="net", GOTO="persistent_net_generator_end"
# ignore the interface if a name has already been set
NAME=="?*", GOTO="persistent_net_generator_end"
# ignore Xen virtual interfaces
SUBSYSTEMS=="xen", GOTO="persistent_net_generator_end"
# ignore UML virtual interfaces
DRIVERS=="uml-netdev", GOTO="persistent_net_generator_end"
# ignore VMWare virtual interfaces
ATTR{address}=="00:0c:29:*|00:50:56:*", GOTO="persistent_net_generator_end"
# ignore interfaces with random MAC addresses
ATTR{address}=="?[2367abef]:*", GOTO="persistent_net_generator_end"
# ignore "secondary" raw interfaces of the madwifi driver
KERNEL=="ath*", ATTRS{type}=="802", GOTO="persistent_net_generator_end"
# provide nice comments for the generated rules
SUBSYSTEMS=="pci", \
ENV{COMMENT}="PCI device $attr{vendor}:$attr{device}"
SUBSYSTEMS=="usb", \
ENV{COMMENT}="USB device $attr{idVendor}:$attr{idProduct}"
SUBSYSTEMS=="ccwgroup", \
ENV{COMMENT}="S/390 device at $id",
SUBSYSTEMS=="ieee1394", \
ENV{COMMENT}="Firewire device $attr{host_id}"
ENV{COMMENT}=="", \
ENV{COMMENT}="Unknown $env{SUBSYSTEM} device ($env{DEVPATH})"
ATTRS{driver}=="?*", \
ENV{COMMENT}="$env{COMMENT} ($attr{driver})"
# ignore interfaces without a driver link like bridges and VLANs
KERNEL=="eth*|ath*|wlan*|ra*|sta*|ctc*|lcs*|hsi*", DRIVERS=="?*",\
IMPORT{program}="write_net_rules $attr{address}"
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
LABEL="persistent_net_generator_end"
kann es also udev Noob aber leider nicht deuten ...
Viele Grüße,
Tilo
Reply to: