Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 17:54:42 +0300
From:      "Sergey Matveychuk" <sem@ciam.ru>
To:        "Mike Tancsa" <mike@sentex.net>
Cc:        <freebsd-stable@freebsd.org>
Subject:   ??: fxp half-duplex problemm
Message-ID:  <000c01c18253$c43700c0$0a2da8c0@sem>
References:  <5.1.0.14.0.20011210162739.01c08a50@marble.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> ifconfig fxp0 media 100baseTX mediaopt full-duplex
> ifconfig fxp0 media 100baseTX

it doesn't metter.

Just after booting:

# dmesg| egrep 'fxp|mii'
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xc400-0xc43f mem
0xdfe00000-0xdfefffff,0xdfffd000-0xdfffdfff irq 12 at device 15.0 on pci0
fxp0: Ethernet address 00:d0:b7:16:10:f9
inphy0: <i82555 10/100 media interface> on miibus0
# dmesg | egrep inphy
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

# ifconfig -m fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet autoselect (100baseTX <full-duplex>)
 status: active
 supported media:
  media autoselect
  media 100baseTX mediaopt full-duplex
  media 100baseTX
  media 10baseT/UTP mediaopt full-duplex
  media 10baseT/UTP
  media 100baseTX mediaopt hw-loopback

Really strange thing happen when I change media type:

Turn off autoselect:
# ifconfig fxp0 media 100baseTX mediaopt full-duplex
# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet 100baseTX <full-duplex>
 status: active

Turning off full-duplex:
# ifconfig fxp0 media 100baseTX
# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet 100baseTX
 status: active

Looks like half-duplex? Nope! Switch indecated full-duplex.

Try switch to 10baseT/UTP:
# ifconfig fxp0 media 10baseT/UTP
# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet 10baseT/UTP
 status: active

Really switch indicated 10Mbits half-duplex.

Switch back to 100Mbits:
# ifconfig fxp0 media 100baseTX
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet 100baseTX
 status: no carrier

Oops! Where is my carrier? :)

Disconnect cable from switch and connect it again:
# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 inet 192.168.45.10 netmask 0xffffff00 broadcast 192.168.45.255
 ether 00:d0:b7:16:10:f9
 media: Ethernet 100baseTX
 status: active

Look on switch: 100Mbit half-duplex!
But then we can't turn on full-duplex any way. Only rebooting.

Conclusion: ifconfig always show right media but really it doesn't.

All right with old driver (from 4.3-RELEASE).

----
Sem.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c18253$c43700c0$0a2da8c0>