From owner-freebsd-current@freebsd.org Sun Aug 5 10:26:58 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 485CE1071DD0 for ; Sun, 5 Aug 2018 10:26:58 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out2-4.antispamcloud.com (out2-4.antispamcloud.com [185.201.17.4]) (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 A7A158A860 for ; Sun, 5 Aug 2018 10:26:57 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from [153.92.8.106] (helo=srv31.niagahoster.com) by mx105.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fmGFQ-0005Gh-7e; Sun, 05 Aug 2018 12:26:54 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vE8BR5ALwNJ1U8XBSnqNw5Qugf0ZZvwqAQ10eGQAqgU=; b=P+F27d3ZC2SUQ0Gm2Zbq0KTOQz L3nneeyiCPFYwGYqDd1sQK4oo3GJunMcHdZBtgbYpRP9ONTq2npvQEypryYTQzuMmKQaUEktp+KH+ sPXix+UfXRwlbPvgPlHv2NqouYnXPrzrxZUXjF0UE67JinUx4Uw5EwM+OM728rWtitMINGzhzBTeU sAkKaVoV22WjMongbWXYRA1CZQtqJqta4fBPovi1HJJAPAre+q0h2wiQ6uEzrDxjM9xKJqPP+i7Zg MD1Y/uGG2p4ilagm6lnAn+KuDQrRMuQl8vUdKGiSfxCvvKw4SxnjwTPSItjh5E9mZvqAPX++lk0mt SzX6TGVQ==; Received: from [114.125.101.37] (port=28039 helo=X220.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fmGEZ-00021f-5A; Sun, 05 Aug 2018 17:26:03 +0700 Date: Sun, 5 Aug 2018 18:25:57 +0800 From: Erich Dollansky To: Dhananjay Balan Cc: freebsd-current@freebsd.org Subject: Re: Ethernet troubles with X230 Message-ID: <20180805182557.2aabb5d2.freebsd.ed.lists@sumeritec.com> In-Reply-To: <20180805101824.qjale5wkzzxozio3@kazhap> References: <20180805101824.qjale5wkzzxozio3@kazhap> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.5 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-AntiSpamCloud-Domain: out.niagahoster.com X-AntiSpamCloud-Username: niaga Authentication-Results: antispamcloud.com; auth=pass (login) smtp.auth=niaga@out.niagahoster.com X-AntiSpamCloud-Outgoing-Class: ham X-AntiSpamCloud-Outgoing-Evidence: Combined (0.06) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5rz4fZm4nkJXCJMbfezKrt1602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvOz+/t1rl9PPe5cv0PAuglORoGXDTbg2AOY/Ut+eYz9q65IY6XPHcBhozPM0/E5Nbu8E1 GhBZffckQxUvi0e7DW7cL+8G3q1X3JQn5vO/p2Q15g+sHZmT3CLVmxntdIVybe6Py/K+vCjtqQTE fJyKYgaOZyzrCP/jqCdQ1YB1PD6E5uYqVWquzFCUHdsOsi1PW+0Eidzv7xUmtfqhhPMNuJ5rTs/e hr9X5RqEFTfB8h6c8XBIo15TslrtmG58MJbIe9Nj2gH36xYASQ8MSpHHs0ThVqvgDnCZYPJFUbWN 2gaOx7gnV2ssmWN5e66U4f1E6eeY3gvx7MMqWor83813ZOEmyJVNdsbZe26rnA9cdJYVm3crh8qv AByhjgHa32bc299fxN2oReTDHAyOynaY0ClDpfob/mIeeKIYM+QcsoCTIRFsicyJMEhQFtD8PLoi ngDAVE0LDqavceS6CUDOisguC54qR0DXEHm1B53l7yqV9+loV8IYwkmlIXLpYVwFMNOITDa6LxNU +V0EKPyMEBPnd9wZhrVMV3X3Nbh+/KD/2mySYqU/ZXWLihQ+Enbimc2M7pjwMDMDXBXaFNceBYKC +kSmM4tAxl58TOfEEjNEmXruGWa7N54JSUca4pPHdIsEMysPur9wmiDBurOy6iQnq6cHsIo5mrxp ZRr/jz9JfrjkvyMoN96GKh1twvgQM26/CrNEqgqUViIlzLTqPP6pUcxCvAvkUVYGicJRckdnOyPk zu19ii4PlCQnDEninnEYd4LuseiMLZi1UwuOxReRNkAEETzgfODJrA65N8kZxkjt5aFCBb9ryQ4X Nm74b3uaU7UD02FRg858AaX7/1YhEWyJzIkwSFAW0Pw8uiKeIhm2mdF3K9L2qvwKeZ05uGLGxMOp 3NjyUqIzeAEyy9F2yUFTDGqfxW5pcMNQcc53 X-Report-Abuse-To: spam@quarantine1.antispamcloud.com X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2018 10:26:58 -0000 Hi, On Sun, 5 Aug 2018 12:18:24 +0200 Dhananjay Balan wrote: > Hi, > > I have a problems with ethernet on my laptop (X230). pciconf(8) > identifies the device as Intel 82579LM Gigabit Network Connection > (Lewisville). > > 1. Resuming after a long suspend (~5hr), sometimes the > machine can't get a DHCP IP. > > 2. After suspend, the ethernet device starts reporting no carrier, > eventhough the cables are plugged in and if I plug it to a different > box, they would work > > I can reproduce both on 12.0-CURRENT #17 r336576. But not sure when > they started. > > I have seen this behaviour with 2 routeres running three firmwares at > the other end. > 1. Easybox (linux 2.x?) > 2. Edgerouter lite running stock fw (linux 2.x) and 12-CURRENT (~3 > months old) > > For Problem (1) DHCP lease: > ifconfig shows: > em0: flags=8843 metric 0 mtu > 1500 > options=81249b > ether xx:xx:xx:xx:xx:xx inet 0.0.0.0 netmask 0xff000000 broadcast > 255.255.255.255 media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > > It still can't get an ip if I invoke service netif restart > > em0: flags=8843 metric 0 mtu > 1500 > options=81249b > ether xx:xx:xx:xx:xx:xx inet 0.0.0.0 netmask 0xff000000 broadcast > 255.255.255.255 media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > > If I try running dhclient manually, > > [dhananjay:~] 1 % sudo dhclient em0 > dhclient already running, pid: 14305. > exiting. > [dhananjay:~] 1 % sudo kill 14305 > [dhananjay:~] % sudo dhclient em0 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 6 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 6 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 10 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 13 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 17 > DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 9 > No DHCPOFFERS received. > No working leases in persistent database - sleeping. > > For (2) For status no carrier > em0: flags=8c03 metric 0 mtu > 1500 > options=81249b > ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect > status: no carrier > nd6 options=29 > > and dmesg keeps repeating > em0: TX(0) desc avail = 1024, pidx = 0 > em0: TX(0) desc avail = 1024, pidx = 0 > em0: TX(0) desc avail = 1024, pidx = 0 > em0: TX(0) desc avail = 1024, pidx = 0 > > > The only solution I have found so far is to just reboot the laptop and > then everything starts working. FWIW the router led never blinks (no > data transfers during DHCPDISCOVER). I am not sure how to debug this. > when I ran into this problem, I delete the IP address 0.0.0.0, kill dhclient and start a new dhclient. As we used fixed IP addresses for em0, the problem comes up only on wlan. Erich