Re: Network (LAN) 'lost'

2007-12-14 Thread Uwe Dippel
On Tue, 11 Dec 2007 16:11:57 +0100, Benjamin Schmidt wrote:

 The configuration file you need, is:
 /etc/udev/rules.d/z25_persistent-net.rules
 
 delete the entry with eth0 and rename the other entry from eth2 to
 eth0. Ok, now reboot (or only restart udev, don't know) and you will
 have eth0 again.

True enough. Tried it, and spot on! /etc/init.d/udev stop / start will
bring it back.

Filed a bug report (456197), but was shot down:
Sorry. So far people who know about udev and the kernel much more than
you have not found better solutions and 'closed'.

Intelligence remains constant, but the number of people increases

Thanks again, Benjamin !

Uwe



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Network (LAN) 'lost'

2007-12-14 Thread Sudev Barar
On 11/12/2007, Benjamin Schmidt [EMAIL PROTECTED] wrote:
 If you have udev installed and it recognizes a ethernet adapter with a
 unknown mac address, it will assign a new eth*-reference. So maybe you
 used a mac changer or some updates deletes a udev specific file. I don't
 know.

 The configuration file you need, is:
 /etc/udev/rules.d/z25_persistent-net.rules

 delete the entry with eth0 and rename the other entry from eth2 to
 eth0. Ok, now reboot (or only restart udev, don't know) and you will
 have eth0 again.

Interesting as I am facing similar problems.
First apologies for likely OT here but I am using Ubuntu and finding
similar problems however there on z25 rules file for udev...any
pointers where these settings may be found?
-- 
Regards,
Sudev Barar

Read http://blog.sudev.in for topics ranging from here to there.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Network (LAN) 'lost'

2007-12-11 Thread Uwe Dippel
This morning, at boot, suddenly no LAN. The boot screen already had
some SIOCSIF errors. Solaris booted properly, with LAN.

In a nutshell, eth0 suddenly migrated to eth2, as one and only eth device.

Details:

This is what I get from dmesg:
...
ACPI: Processor [CPU1] (supports 16 throttling states)
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp :00:09.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp :00:09.0: Try the 8139too driver instead.
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt :00:09.0[A] - GSI 18 (level, low) - IRQ 169
eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
...

And there is no other eth:
$ dmesg | grep eth
eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
$

ifconfig says
# ifconfig
loLink encap:Local Loopback
 inet addr:127.0.0.1  Mask:255.0.0.0
 inet6 addr: ::1/128 Scope:Host
 UP LOOPBACK RUNNING  MTU:16436  Metric:1
 RX packets:12 errors:0 dropped:0 overruns:0 frame:0
 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
#

ifconfig does not 'up' eth0:
# ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device
#

But it is in there:
# lspci -v
...
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
   Subsystem: Realtek Semiconductor Co., Ltd. RT8139
   Flags: bus master, medium devsel, latency 64, IRQ 169
   I/O ports at d800 [size=256]
   Memory at febff400 (32-bit, non-prefetchable) [size=256]
   Capabilities: [50] Power Management version 2

Only man ifconfig gave me an idea:
# ifconfig -a
eth2  Link encap:Ethernet  HWaddr 00:02:44:90:97:27
 BROADCAST MULTICAST  MTU:1500  Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 Interrupt:169 Base address:0xd800

loLink encap:Local Loopback
 inet addr:127.0.0.1  Mask:255.0.0.0
 inet6 addr: ::1/128 Scope:Host
 UP LOOPBACK RUNNING  MTU:16436  Metric:1
 RX packets:12 errors:0 dropped:0 overruns:0 frame:0
 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)

sit0  Link encap:IPv6-in-IPv4
 NOARP  MTU:1480  Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
#

And it does work !:
# dhclient eth2
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth2/00:02:44:90:97:27
Sending on   LPF/eth2/00:02:44:90:97:27
Sending on   Socket/fallback/fallback-net
DHCPREQUEST on eth2 to 255.255.255.255 port 67
DHCPACK from 192.168.116.200
bound to 192.168.116.101 -- renewal in 432000 seconds.


Now I ask myself WHY !?
How can a properly working system suddenly end up with a strange eth2
instead of eth0 ?
How does an eth0 recognised in dmesg at boot migrate to eth2; on its own ?
Is this a bug ?


Uwe


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Network (LAN) 'lost'

2007-12-11 Thread Benjamin Schmidt
If you have udev installed and it recognizes a ethernet adapter with a
unknown mac address, it will assign a new eth*-reference. So maybe you
used a mac changer or some updates deletes a udev specific file. I don't
know.

The configuration file you need, is:
/etc/udev/rules.d/z25_persistent-net.rules

delete the entry with eth0 and rename the other entry from eth2 to
eth0. Ok, now reboot (or only restart udev, don't know) and you will
have eth0 again.

Best regards,
Benjamin Schmidt


Uwe Dippel wrote:
 This morning, at boot, suddenly no LAN. The boot screen already had
 some SIOCSIF errors. Solaris booted properly, with LAN.
 
 In a nutshell, eth0 suddenly migrated to eth2, as one and only eth device.
 
 Details:
 
 This is what I get from dmesg:
 ...
 ACPI: Processor [CPU1] (supports 16 throttling states)
 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
 8139cp :00:09.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible 
 chip
 8139cp :00:09.0: Try the 8139too driver instead.
 8139too Fast Ethernet driver 0.9.27
 ACPI: PCI Interrupt :00:09.0[A] - GSI 18 (level, low) - IRQ 169
 eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
 eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
 ...
 
 And there is no other eth:
 $ dmesg | grep eth
 eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
 eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
 $
 
 ifconfig says
 # ifconfig
 loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
 #
 
 ifconfig does not 'up' eth0:
 # ifconfig eth0 up
 eth0: ERROR while getting interface flags: No such device
 #
 
 But it is in there:
 # lspci -v
 ...
 00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
 RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64, IRQ 169
I/O ports at d800 [size=256]
Memory at febff400 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
 
 Only man ifconfig gave me an idea:
 # ifconfig -a
 eth2  Link encap:Ethernet  HWaddr 00:02:44:90:97:27
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:169 Base address:0xd800
 
 loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
 
 sit0  Link encap:IPv6-in-IPv4
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 #
 
 And it does work !:
 # dhclient eth2
 Internet Software Consortium DHCP Client 2.0pl5
 Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
 All rights reserved.
 
 Please contribute if you find this software useful.
 For info, please visit http://www.isc.org/dhcp-contrib.html
 
 sit0: unknown hardware address type 776
 sit0: unknown hardware address type 776
 Listening on LPF/eth2/00:02:44:90:97:27
 Sending on   LPF/eth2/00:02:44:90:97:27
 Sending on   Socket/fallback/fallback-net
 DHCPREQUEST on eth2 to 255.255.255.255 port 67
 DHCPACK from 192.168.116.200
 bound to 192.168.116.101 -- renewal in 432000 seconds.
 
 
 Now I ask myself WHY !?
 How can a properly working system suddenly end up with a strange eth2
 instead of eth0 ?
 How does an eth0 recognised in dmesg at boot migrate to eth2; on its own ?
 Is this a bug ?
 
 
 Uwe
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Network (LAN) 'lost'

2007-12-11 Thread Uwe Dippel
On Tue, 11 Dec 2007 16:11:57 +0100, Benjamin Schmidt wrote:

 If you have udev installed and it recognizes a ethernet adapter with a
 unknown mac address, it will assign a new eth*-reference. So maybe you
 used a mac changer or some updates deletes a udev specific file. I don't
 know.
 
 The configuration file you need, is:
 /etc/udev/rules.d/z25_persistent-net.rules
 
 delete the entry with eth0 and rename the other entry from eth2 to
 eth0. Ok, now reboot (or only restart udev, don't know) and you will
 have eth0 again.

Somewhat true. Lightning struck and killed the other, same type, NIC. I
had shut down and plugged a new one.
I wonder how anyone can *not* call this behaviour silly  buggy. :(

Thanks anyway,

Uwe,
deeply disappointed by a stupid crap like this udev behaviour.

Who would ever dare to talk about acceptance of Linux as desktop with such
useless stuff ?







-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]