On Tuesday 26 August 2008 21:18:25 Rainer Dorsch wrote: > Hello, > > I have an usb ethernet adapter in my nslu2. I wanted to keep the network > interfaces persistent with udev: > > nslu2:~# 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. > > # Unknown net device (/class/net/eth0) (ixp400_eth) > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:18:39:28:f2:a9", > NAME="eth0" > > # USB device 050d:0121 (pegasus) > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:05:1b:00:5a:39", > NAME="eth1" > > > This does not work for me: > nslu2:~# zgrep Belkin /var/log/syslog.1.gz > Aug 25 23:45:49 nslu2 kernel: pegasus 1-1:1.0: eth0, Belkin F5D5050 USB > Ethernet, 00:05:1b:00:5a:39 > Aug 25 23:57:05 nslu2 kernel: pegasus 1-1:1.0: eth0, Belkin F5D5050 USB > Ethernet, 00:05:1b:00:5a:39 > nslu2:~# grep Belkin /var/log/syslog > Aug 26 18:57:28 nslu2 kernel: pegasus 1-1:1.0: eth1, Belkin F5D5050 USB > Ethernet, 00:05:1b:00:5a:39 > Aug 26 20:06:34 nslu2 kernel: pegasus 1-1:1.0: eth1, Belkin F5D5050 USB > Ethernet, 00:05:1b:00:5a:39 > nslu2:~# > > Actually it worked for a long time reliably, but since the last kernel > upgrade to > > nslu2:~# uname -a > Linux nslu2 2.6.18-6-ixp4xx #1 Tue Aug 19 20:03:53 UTC 2008 armv5tel > GNU/Linux nslu2:~# dpkg -s linux-image-2.6.18-6-ixp4xx > Package: linux-image-2.6.18-6-ixp4xx > Status: install ok installed > Priority: optional > Section: admin > Installed-Size: 25028 > Maintainer: Debian Kernel Team <[EMAIL PROTECTED]> > Architecture: arm > Source: linux-2.6 > Version: 2.6.18.dfsg.1-22etch2 > Provides: linux-image, linux-image-2.6, linux-modules-2.6.18-6-ixp4xx > Depends: module-init-tools (>= 0.9.13), coreutils (>= 5.96), > initramfs-tools (>= 0.55) | yaird (>= 0.0.12-8) | linux-initramfs-tool > Pre-Depends: debconf (>= 0.2.17) | debconf-2.0 > Suggests: linux-doc-2.6.18, fdutils > Conflicts: initramfs-tools (<< 0.55), yaird (<< 0.0.12-8) > Description: Linux 2.6.18 image on IXP4xx > This package provides the binary image and pre-built loadable modules for > Linux kernel 2.6.18 on IXP4xx based (Linksys NSLU2, etc) machines. > nslu2:~# > > > I see the interfaces changing. > > > Does anybody have an idea what could go wrong here? > > Thanks, > Rainer > > -- > Rainer Dorsch > Lärchenstr. 6 > D-72135 Dettenhausen > 07157-734133 > email: [EMAIL PROTECTED] > jabber: [EMAIL PROTECTED] > GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E > Full GPG key: http://pgp.mit.edu/
What do you mean by "I see the interface changing." does it change with every reboot? or is it now called eth1 where it used to be eth0. If it's just that it got renamed, then I'd remove the first interface in "/etc/udev/rules.d/z25_persistent-net.rules" and change the second one from eth1 to eth0 HTH -- Thank you, Clifford W. Hansen PHP Developer / Linux Administrator (Cell) +27 82 883 8677 (Fax) +27 86 503 0634 (E-Mail) [EMAIL PROTECTED] (MSN) [EMAIL PROTECTED] (GPG) 0x936D6C19 "We have seen strange things today!" () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]