Re: Controlling eth0,eth1,... assignment order?



On Mon, 27 Feb 2006 20:36:35 +0100
Svante Signell <svante.signell@xxxxxxxxx> wrote:

The solution given below has been working for some time now, until udev
0.085-1 from Feb 19 was installed. Then the behaviour is wrong again,
eth0 is associated to the 8139too driver and eth1 is associated to the
3c59x driver. What has changed in the udev functionality? The
file /etc/udev/static-nic.rules linked
to /etc/udev/rules.d/025_static-nic.rules does not seem to be run at
startup anymore :-( This issue should probably be an FAQ by now. Any
pointers??

Thanks,
Svante

Even though the old version of the script worked I think technically
the script was never correct. Maybe it was just udev being changed to
more closely match behaviour as it is expected to be applied else where?
Whatever the case I had to modify the script changing things that were
being evaluated to a == sign where before I had a single = sign which
now gets interpreted as setting a value. What I am using currently
looks like this:

# Start of udev rule for static ethernet device names.
#
# Place in /etc/udev then from the command line do 'chmod 0644' then
# 'ln -s /etc/udev/static-nic.rules /etc/udev/rules.d/025_static-nic.rules'
#
# Mapping specific MAC address to specific device names to ensure
# predictable behaviour with things that expect a specific network card
# to show up with the same name.
#
# SYSFS{address}=="MAC address" - MAC address should be the machine
# address of the network card the rule is for. Double == because this
# is a comparison
#
# NAME="name" - name is the device name you want used for the interface.
# These could be standard names eth0, wlan0, etc... or if you prefer
# something more descriptive lan, internet, wireless, etc... Single =
# because we are setting the name

KERNEL=="eth*", SYSFS{address}=="00:01:02:03:04:05", NAME="wireless"
KERNEL=="eth*", SYSFS{address}=="10:11:12:13:14:15", NAME="ethernet"

# End udev rule

Later, Seeker


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: ISE/EDK Kubuntu linux installation issues
    ... Note this applies to the USB driver. ... Next download the userspace shim sources from http://www.rmdir.de/~michael/xilinx/ and compile them. ... Ensure the script permissions are set with chmod +x. ... By putting an executable shell script directly in the places where callers look for it, you can add the prelink and the Linux system libaries will sort out whether it's executing a binary or a shell script. ...
    (comp.arch.fpga)
  • Re: vbs to configure printer to remote machine
    ... Description The printer driver is unknown. ... Win32 error code 1797 ... copy the files you want to install into this directory. ... Microsoft Windows Script Host Version 5.6 ...
    (microsoft.public.windowsxp.print_fax)
  • SUMMARY : With code (LONG) Jass Drivers / Finish scripts
    ... You should probably be using the undo functionality of jass. ... and then re-install jass Main Driver ... Make a wrapper script that looks at all the finish scripts ... Would have liked to make this run on the client but could not figure this bit ...
    (SunManagers)
  • Re: [SLE] Missing 3D (was Compiz issues.)
    ... This is driver file location in above package ... post-uninstall script that will call tiny-nvidia-installer. ... Strange that it didn't offered to prepare existing kernel sources first. ... It can be that Smart did just what is programmed to do, install rpm, run ...
    (SuSE)
  • Re: Using named pipes in father-child IPC
    ... The driver and shell script communicate both ways: ... You don't need named pipes either, ...
    (comp.unix.programmer)