From owner-freebsd-questions Wed Apr 22 12:22:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA23130 for freebsd-questions-outgoing; Wed, 22 Apr 1998 12:22:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA23097 for ; Wed, 22 Apr 1998 19:22:16 GMT (envelope-from mdtancsa@sentex.net) Received: (from mdtancsa@localhost) by granite.sentex.net (8.8.6/8.6.9) id PAA29587 for questions@freebsd.org; Wed, 22 Apr 1998 15:20:35 -0400 (EDT) From: Mike D Tancsa Message-Id: <199804221920.PAA29587@granite.sentex.net> Subject: How to reset an fxp ethernet interface To: questions@FreeBSD.ORG Date: Wed, 22 Apr 1998 15:20:33 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I came across something I dont quite understand and not sure where to start looking. I am in the process of adding a new FreeBSD box into the production mix and was testing out the interfaces and cabling for it when I discovered this behaviour that I am not sure if is switch related or driver related. machine A and B connected via a switching hub, both media: 100baseTX transfer a file from B to A 49643600 bytes received in 15.58 seconds (3.04 MB/s) Looks good. Now, I want to test a different cable, to make sure the big file transfers OK, without generating input or output errors on either side of the interface. So I unplug the existing cable and plug in the new cable. 49643600 bytes received in 52.35 seconds (926.02 KB/s) ....And sometimes even slower. I tried an ifconfig down and up, and also tried explicitly setting the media options again by doing ifconfig inet 192.168.200.1 netmask 255.255.255.224 media 100basetx mediaopt full-duplex and again doing an ifconfig down and ifconfig up... Still, the same slow performance. But, when I do a 'sync;shutdown -r now' and the machine comes back up again, the second cable performs flawlessly at the expected speed. Does anyone know whats going on, or how I can reset the interface that simulates a reboot without actually rebooting the machine ? The machine is FreeBSD 2.2.6-STABLE #0: Tue Apr 21 13:15:09 EDT 1998 mdtancsa@temp-iolite.sentex.ca:/usr/src/sys/compile/IOLITE CPU: Pentium (200.46-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping=3 Features=0x8001bf real memory = 67108864 (65536K bytes) avail memory = 63954944 (62456K bytes) Probing for devices on PCI bus 0: chip0 rev 1 on pci0:0:0 chip1 rev 1 on pci0:7:0 chip2 rev 1 on pci0:7:1 chip3 rev 1 int d irq 15 on pci0:7:2 chip4 rev 1 on pci0:7:3 fxp0 rev 2 int a irq 11 on pci0:10:0 fxp0: Ethernet address 00:a0:c9:4b:a5:f4 fxp1 rev 2 int a irq 10 on pci0:11:0 fxp1: Ethernet address 00:a0:c9:8c:f1:53 fxp2 rev 2 int a irq 15 on pci0:12:0 fxp2: Ethernet address 00:a0:c9:89:d9:7e Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> Thanks, ---Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message