From owner-freebsd-stable Tue Dec 11 6:54:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.ciam.ru (main.ciam.ru [212.28.70.126]) by hub.freebsd.org (Postfix) with ESMTP id 18E6037B417 for ; Tue, 11 Dec 2001 06:54:43 -0800 (PST) Received: from exim by mail.ciam.ru with drweb-scanned (Exim 3.33 #1) id 16DoIV-000A20-00; Tue, 11 Dec 2001 17:54:19 +0300 Received: from sem.ciam.ru ([192.168.45.10] helo=sem) by mail.ciam.ru with smtp (Exim 3.33 #1) id 16DoIV-000A1s-00; Tue, 11 Dec 2001 17:54:19 +0300 Message-ID: <000c01c18253$c43700c0$0a2da8c0@sem> From: "Sergey Matveychuk" To: "Mike Tancsa" Cc: References: <5.1.0.14.0.20011210162739.01c08a50@marble.sentex.ca> Subject: ??: fxp half-duplex problemm Date: Tue, 11 Dec 2001 17:54:42 +0300 Organization: CIAM MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Envelope-To: mike@sentex.net, freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > ifconfig fxp0 media 100baseTX mediaopt full-duplex > ifconfig fxp0 media 100baseTX it doesn't metter. Just after booting: # dmesg| egrep 'fxp|mii' fxp0: 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: on miibus0 # dmesg | egrep inphy inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto # ifconfig -m fxp0 fxp0: flags=8843 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 ) 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 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 Turning off full-duplex: # ifconfig fxp0 media 100baseTX # ifconfig fxp0 fxp0: flags=8843 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 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 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 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