Re: network interfaces not persistent on nslu2/arm
Am Mittwoch, 27. August 2008 schrieb Wookey:
> On 2008-08-26 21:18 +0200, 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
> >
> > [since]> nslu2:~# uname -a
> > Linux nslu2 2.6.18-6-ixp4xx #1 Tue Aug 19 20:03:53 UTC 2008 armv5tel
> > GNU/Linux
> >
> >
> > I see the interfaces changing.
> >
> >
> > Does anybody have an idea what could go wrong here?
>
> No idea what the problem is in your case but as a datapoint I can say
> that it has been working as expected for me for some time on arm over
> kernels 2.6.18, 2.6.22, 2.6.23, 2.6.25. This is on arm rather than
> armel, and on pxa. I've not noticed an issue on armel but I haven't
> tested it as much. Which are you using?
>
> (I actually find this behaviour mostly unhelpful - I normally want the
> USB adaptor to be eth0 no matter how many different adaptors I plug in
> and out (I have several). I'm sure udev can be adjusted to do this.)
>
Woodkey,
sorry for the slow response. I am using arm, not armel. I have seen this issue
only on recent etch kernels in arm (not tested lenny/armel so far).
nslu2:~# uname -a
Linux nslu2 2.6.18-6-ixp4xx #1 Sat Oct 11 23:55:56 UTC 2008 armv5tel GNU/Linux
nslu2:~#
and I observed the weired behavior again after the last kernel upgrade.
Although udev clearly specifies that the USB interface should be eth1
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.
# MAC addresses must be written in lowercase.
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:18:39:28:f2:a9",
NAME="eth0"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:05:1b:00:5a:39",
NAME="eth1"
nslu2:~#
the syslog except shows that the interfaces were different at two subsequent
boot runs:
nslu2:~# grep -i eth /var/log/syslog
Oct 14 22:01:49 nslu2 kernel: pegasus: v0.6.13 (2005/11/13), Pegasus/Pegasus
II USB Ethernet driver
Oct 14 22:01:49 nslu2 kernel: pegasus 1-1:1.0: eth0, Belkin F5D5050 USB
Ethernet, 00:05:1b:00:5a:39
Oct 14 22:01:49 nslu2 kernel: ixp4xx_mac driver 0.3.1: eth1 on NPE-B with
PHY[1] initialized
Oct 14 22:01:49 nslu2 kernel: eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
Oct 14 22:01:49 nslu2 kernel: Link of eth1 is full-duplex
Oct 14 22:01:49 nslu2 kernel: eth1: no IPv6 routers present
Oct 14 22:01:49 nslu2 dnsmasq[4797]: warning: interface eth0 does not
currently exist
Oct 14 22:08:33 nslu2 kernel: pegasus: v0.6.13 (2005/11/13), Pegasus/Pegasus
II USB Ethernet driver
Oct 14 22:08:34 nslu2 kernel: ixp4xx_mac driver 0.3.1: eth0 on NPE-B with
PHY[1] initialized
Oct 14 22:08:34 nslu2 kernel: pegasus 1-1:1.0: eth1, Belkin F5D5050 USB
Ethernet, 00:05:1b:00:5a:39
Oct 14 22:08:34 nslu2 kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Oct 14 22:08:34 nslu2 kernel: Link of eth0 is full-duplex
Oct 14 22:08:34 nslu2 kernel: eth1: set allmulti
Oct 14 22:08:34 nslu2 kernel: eth1: set allmulti
Oct 14 22:08:34 nslu2 kernel: eth0: no IPv6 routers present
Oct 14 22:08:34 nslu2 kernel: eth1: no IPv6 routers present
nslu2:~#
Rainer
--
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
Reply to: