mii-tool says no link, but there - is - a link

mii-tool says no link, but there - is - a link

Post by Tom Van Overbek » Sun, 23 Feb 2003 06:16:40


I'm running redhat 8.0 on a p4 1800mhz pc with 2 (realtek) NIC's. (1 nic
on dhcp via cable modem, other nic fixed ip).
with the standard kernel i have no problems, all is well.

however, because i need to load a precompiled driver that will only run on
the mandrake 2.4.18-6mdk kernel, i installed this kernel. booting went
fine, until the point where it tries to assign a dhcp ip for my first
nic (eth0). it says 'no link present, check cable ?'.
The cable is always connected to the nic.

i investigated the problem, and found out that ifup eth0 runs first the
mii-tool command. with the 2.4.18-6mdk kernel, it returns a 'no link',
whereas 2.4.18-14 (the redhat 8.0 kernel) reports that there is a link.

I am able to circumvent the problem though by directly issuing a 'dhclient
eth0' command, but this is clearly not 'the right thing'.

Does anyone have any idea why mii-tool would report the wrong value ?

Thank you,