From owner-freebsd-hackers@freebsd.org Fri Jul 8 16:34:38 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BA52B839E7 for ; Fri, 8 Jul 2016 16:34:38 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FF211F3E for ; Fri, 8 Jul 2016 16:34:37 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id D28421622 for ; Fri, 8 Jul 2016 16:34:30 +0000 (UTC) Subject: Re: help with onboard LAN To: freebsd-hackers@freebsd.org References: From: Allan Jude Message-ID: <042e6e78-13cb-7d48-68b1-495a0a341129@freebsd.org> Date: Fri, 8 Jul 2016 12:34:30 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 16:34:38 -0000 On 2016-07-08 06:54, Wojciech Puchar wrote: > my supermicro-rebranded server is specified as having 2 1Gb/s ethernet > ports onboard > > what actually is: > > ix0@pci0:3:0:0: class=0x020000 card=0x152815d9 chip=0x15288086 rev=0x01 > hdr=0x00 > vendor = 'Intel Corporation' > device = 'Ethernet Controller 10-Gigabit X540-AT2' > class = network > subclass = ethernet > ix1@pci0:3:0:1: class=0x020000 card=0x152815d9 chip=0x15288086 rev=0x01 > hdr=0x00 > vendor = 'Intel Corporation' > device = 'Ethernet Controller 10-Gigabit X540-AT2' > class = network > subclass = ethernet > > > > which is strange > > card is autodetected with ixgbe driver under FreeBSD 10 and i put > > device miibus > device ixgbe > > in my custom kernel. > > ix0: > port 0xe020-0xe03f mem 0xfbc00000-0xfbdfffff,0xfbe04000-0xfbe07fff irq > 42 at device 0.0 on pci3 > ix0: Using MSIX interrupts with 9 vectors > ix0: Ethernet address: 0c:c4:7a:6e:7e:9e > ix0: PCI Express Bus: Speed 5.0GT/s Width x8 > ix1: > port 0xe000-0xe01f mem 0xfba00000-0xfbbfffff,0xfbe00000-0xfbe03fff irq > 45 at device 0.1 on pci3 > ix1: Using MSIX interrupts with 9 vectors > ix1: Ethernet address: 0c:c4:7a:6e:7e:9f > ix1: PCI Express Bus: Speed 5.0GT/s Width x8 > > And it works. > > But seems i have autonegotiation problem with gigabit switch - it > connects at 100Mb/s > > ix0: flags=8843 metric 0 mtu 1500 > > options=8407bb > > ether 0c:c4:7a:6e:7e:9e > inet 194.1.144.90 netmask 0xfffffff8 broadcast 194.1.144.95 > inet 194.1.144.91 netmask 0xfffffff8 broadcast 194.1.144.95 > media: Ethernet autoselect (100baseTX ) > status: active > > > i tried > > ifconfig ix0 media 1000baseT > > but it shows error. > > > Any idea what i really have in my server and how to manually set it up > to 1Gb/s > > Seems like no phy is detected. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" Are you sure they are 1 Gigabit ports? They look like 10 Gigabit ports. I have not had trouble getting any of my 10 Gigabit ports to link to a 1 Gigabit switch. Install and run 'dmidecode', and in the first page or two, get the model number of the supermicro motherboard. It will help shed light on the situation. Will look something like this: Base Board Information Manufacturer: Supermicro Product Name: X10DRi-LN4+ -- Allan Jude