1 |
On 4/1/06, Sven Köhler <skoehler@×××.de> wrote: |
2 |
> Hi, |
3 |
> |
4 |
> does anybody use ifplugd successfully? |
5 |
|
6 |
I have had it working with my last 3 laptops. |
7 |
|
8 |
Probably what is happening is that the interface needs to be "up" in |
9 |
order for mii-tool (or ethtool) to work correctly. |
10 |
|
11 |
Try adding the following to /etc/conf.d/net: |
12 |
|
13 |
postdown() { |
14 |
test "${IFACE}" = "eth0" && /sbin/ifconfig eth0 0.0.0.0 up |
15 |
return 0 |
16 |
} |
17 |
|
18 |
This will make sure that when the interface is brought down by the |
19 |
init script, that it is really kept up, but with no address. |
20 |
|
21 |
> I may have found a bug in the network-driver (bcm4400). |
22 |
|
23 |
I have this same driver, although I prefer ethtool: |
24 |
|
25 |
> |
26 |
> Can you perform those three steps with your network card? |
27 |
> - ifconfig eth0 up |
28 |
> - ifconfig eth0 down |
29 |
> - mii-tool eth0 |
30 |
|
31 |
No, the interface needs to be up for mii stuff to work. |
32 |
|
33 |
But as proof that it works: |
34 |
|
35 |
Without cable: |
36 |
carcharias rjf # ifconfig eth0 ; ethtool eth0 |
37 |
eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 |
38 |
UP BROADCAST MULTICAST MTU:1500 Metric:1 |
39 |
RX packets:89 errors:1 dropped:0 overruns:0 frame:0 |
40 |
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 |
41 |
collisions:0 txqueuelen:1000 |
42 |
RX bytes:6756 (6.5 Kb) TX bytes:948 (948.0 b) |
43 |
Interrupt:177 |
44 |
|
45 |
Settings for eth0: |
46 |
Supported ports: [ MII ] |
47 |
Supported link modes: 10baseT/Half 10baseT/Full |
48 |
100baseT/Half 100baseT/Full |
49 |
Supports auto-negotiation: Yes |
50 |
Advertised link modes: 10baseT/Half 10baseT/Full |
51 |
100baseT/Half 100baseT/Full |
52 |
Advertised auto-negotiation: No |
53 |
Speed: 10Mb/s |
54 |
Duplex: Half |
55 |
Port: Twisted Pair |
56 |
PHYAD: 1 |
57 |
Transceiver: internal |
58 |
Auto-negotiation: on |
59 |
Current message level: 0x000000ff (255) |
60 |
Link detected: no |
61 |
|
62 |
Plugging in a cable: |
63 |
carcharias rjf # ifconfig eth0 ; ethtool eth0 |
64 |
eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 |
65 |
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0 |
66 |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
67 |
RX packets:96 errors:1 dropped:0 overruns:0 frame:0 |
68 |
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 |
69 |
collisions:0 txqueuelen:1000 |
70 |
RX bytes:8264 (8.0 Kb) TX bytes:1896 (1.8 Kb) |
71 |
Interrupt:177 |
72 |
|
73 |
Settings for eth0: |
74 |
Supported ports: [ MII ] |
75 |
Supported link modes: 10baseT/Half 10baseT/Full |
76 |
100baseT/Half 100baseT/Full |
77 |
Supports auto-negotiation: Yes |
78 |
Advertised link modes: 10baseT/Half 10baseT/Full |
79 |
100baseT/Half 100baseT/Full |
80 |
Advertised auto-negotiation: No |
81 |
Speed: 100Mb/s |
82 |
Duplex: Full |
83 |
Port: Twisted Pair |
84 |
PHYAD: 1 |
85 |
Transceiver: internal |
86 |
Auto-negotiation: on |
87 |
Current message level: 0x000000ff (255) |
88 |
Link detected: yes |
89 |
|
90 |
Removing the cable: |
91 |
carcharias rjf # ifconfig eth0 ; ethtool eth0 |
92 |
eth0 Link encap:Ethernet HWaddr 00:14:22:EA:37:60 |
93 |
UP BROADCAST MULTICAST MTU:1500 Metric:1 |
94 |
RX packets:98 errors:1 dropped:0 overruns:0 frame:0 |
95 |
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 |
96 |
collisions:0 txqueuelen:1000 |
97 |
RX bytes:8392 (8.1 Kb) TX bytes:1896 (1.8 Kb) |
98 |
Interrupt:177 |
99 |
|
100 |
Settings for eth0: |
101 |
Supported ports: [ MII ] |
102 |
Supported link modes: 10baseT/Half 10baseT/Full |
103 |
100baseT/Half 100baseT/Full |
104 |
Supports auto-negotiation: Yes |
105 |
Advertised link modes: 10baseT/Half 10baseT/Full |
106 |
100baseT/Half 100baseT/Full |
107 |
Advertised auto-negotiation: No |
108 |
Speed: 10Mb/s |
109 |
Duplex: Half |
110 |
Port: Twisted Pair |
111 |
PHYAD: 1 |
112 |
Transceiver: internal |
113 |
Auto-negotiation: on |
114 |
Current message level: 0x000000ff (255) |
115 |
Link detected: no |
116 |
|
117 |
-Richard |
118 |
|
119 |
-- |
120 |
gentoo-user@g.o mailing list |