From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FPuSL-0002Bq-BI for garchives@archives.gentoo.org; Sun, 02 Apr 2006 04:44:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k324iGOx023093; Sun, 2 Apr 2006 04:44:16 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.229]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k324d7IP031193 for ; Sun, 2 Apr 2006 04:39:08 GMT Received: by wproxy.gmail.com with SMTP id i22so1123947wra for ; Sat, 01 Apr 2006 20:39:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JbBqvu6ukgAkuWbLDZrT2EtAMQZbEFwjixknWXXY8obbS6li+rCDCJzQ4HUQ0YYwctjIKg+ea6NL4hPzUdXrxy+O+gC1z5907KFLkJBQbomJeGOZsYzJSAVJ4gx92QniDJIW8gh9vjVv16yRiFWMtNo2PtVCLScL0NB1otv9wg0= Received: by 10.54.116.1 with SMTP id o1mr1895897wrc; Sat, 01 Apr 2006 20:39:07 -0800 (PST) Received: by 10.54.69.9 with HTTP; Sat, 1 Apr 2006 20:39:07 -0800 (PST) Message-ID: <7573e9640604012039j226fd373n336b31b01afcac3@mail.gmail.com> Date: Sat, 1 Apr 2006 21:39:07 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] problems with ifplugd In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k324d7IP031193 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k324iGPH023093 X-Archives-Salt: 951a50f2-89cd-4ffb-b553-3901633a5dfa X-Archives-Hash: 8bcc4a2e06b370397e43a98c56615549 On 4/1/06, Sven K=F6hler wrote: > Hi, > > does anybody use ifplugd successfully? I have had it working with my last 3 laptops. Probably what is happening is that the interface needs to be "up" in order for mii-tool (or ethtool) to work correctly. Try adding the following to /etc/conf.d/net: postdown() { test "${IFACE}" =3D "eth0" && /sbin/ifconfig eth0 0.0.0.0 up return 0 } This will make sure that when the interface is brought down by the init script, that it is really kept up, but with no address. > I may have found a bug in the network-driver (bcm4400). I have this same driver, although I prefer ethtool: > > Can you perform those three steps with your network card? > - ifconfig eth0 up > - ifconfig eth0 down > - mii-tool eth0 No, the interface needs to be up for mii stuff to work. But as proof that it works: Without cable: carcharias rjf # ifconfig eth0 ; ethtool eth0 eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:89 errors:1 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6756 (6.5 Kb) TX bytes:948 (948.0 b) Interrupt:177 Settings for eth0: Supported ports: [ MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: No Speed: 10Mb/s Duplex: Half Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Current message level: 0x000000ff (255) Link detected: no Plugging in a cable: carcharias rjf # ifconfig eth0 ; ethtool eth0 eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.= 0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:96 errors:1 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8264 (8.0 Kb) TX bytes:1896 (1.8 Kb) Interrupt:177 Settings for eth0: Supported ports: [ MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Current message level: 0x000000ff (255) Link detected: yes Removing the cable: carcharias rjf # ifconfig eth0 ; ethtool eth0 eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:98 errors:1 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8392 (8.1 Kb) TX bytes:1896 (1.8 Kb) Interrupt:177 Settings for eth0: Supported ports: [ MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: No Speed: 10Mb/s Duplex: Half Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Current message level: 0x000000ff (255) Link detected: no -Richard --=20 gentoo-user@gentoo.org mailing list