From owner-freebsd-questions@freebsd.org Tue Jun 19 09:53:08 2018 Return-Path: Delivered-To: freebsd-questions@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 93262100BD03 for ; Tue, 19 Jun 2018 09:53:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D7297724B for ; Tue, 19 Jun 2018 09:53:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.97.38]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPA (Nemesis) id 0Lno43-1g8OTc3xWB-00hy4x; Tue, 19 Jun 2018 11:52:20 +0200 Date: Tue, 19 Jun 2018 11:52:18 +0200 From: Polytropon To: Erich Dollansky Cc: B J , freebsd-questions Subject: Re: Problems Connecting Laptop To Modem Message-Id: <20180619115218.58b3983e.freebsd@edvax.de> In-Reply-To: <20180619095828.26271eea.freebsd.ed.lists@sumeritec.com> References: <3E3890A6-72F9-4D80-A021-837FFDB35A39@theory14.net> <20180614093928.6f39434e.freebsd.ed.lists@sumeritec.com> <20180614161923.5246ae81.freebsd.ed.lists@sumeritec.com> <20180615102548.1c686d1b.freebsd.ed.lists@sumeritec.com> <20180619095828.26271eea.freebsd.ed.lists@sumeritec.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:lOMVsk+CvuEmBiDPB7mLB4rX/fEcmK+aSGLvCZQzXP8G/EAW+pk dDP6e1Z2+3UEA7J1bbucfKr+t5GvB7ku6fwJA2d0l8aench+j2Z1hWm6n6DEr8/RlVIYMPK NzHtrBDMr+mISGPO91+e4CMj4pTYQhq5fPnp6KkEI+vFxqrpeOoEzeqzc10PhktVvWURrR2 uI7z2eA+8XsmLou/N2oaQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Lhk6ZnZNFpM=:CeWFXq6QUkw1wzeSHUTPKV P5ij8CPpoiqrHbcoLU64sqHORknCacNwRM4XtSBLj/rs4UNQOnca1fX1E3vyoNjpJ9hpz6vWk jCzr5cL9BsqLMBpEWUHr4BHcJoxiGx9oZi87K4Uz6E80q2Ztu0qC1TZAzxVY+BPjx0oR8C5zg r0jWXSVUT7fNojZ6Pk5NHtW0ijoOKCs0f4gVf74F3RV06PSqMiM0IUW5DOz5bCpaX5uLGbBMm WmCdBFAJQkORoJkg2MjSSxI5+J1F0+EaFRf1ND/41EMIubp9M5nsF5FOFuZHSEi/MiKYyot9y Iv3gWZ+sQ9GKZqBeQINv++hHYx+L0QWsj7xIETDZgOZ13xjzHxbsj09s4531Fj4AaJ3LXiONj qYGGejbFnW7kqtvYwgR6UQTk6KXh2z+XNC/DkeOXUj5U6dJ/gD/mIH2Kb+F56QOKaryWklmoq wq+J91wNh440QWBi2B0jLejCvOBNAJAT/hMwtPT7CQHlTVXmY1UchHgpysWGF7t5rMfpI9G/n K+JlxtdbNqndfUWsHewvjOyi/3hOTUtSoI3sW66soDtG4WiyuO9okir37xL1twT4cAAbnei/H PRnECxd+7jIcrNYm/WcnA1JH6xvHkJYm+QkPHyqeNuNDF/cKm0v3YbNBHi0K4qFl5UM6YFtsi Ee4IWRSOKk9OZGWwQRYbmeIqQGCcQhK02vvNIRDGEOCQVEFiABiTORt5bUTI7ChON8FhBeOen hhhqL2Tx8XgMPzlD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2018 09:53:08 -0000 On Tue, 19 Jun 2018 09:58:28 +0800, Erich Dollansky wrote: > Hi, > > On Mon, 18 Jun 2018 17:30:59 +0000 > B J wrote: > > > On 6/18/18, Gary Aitken wrote: > > > > > > > > >> Internet: > > >> Destination Gateway Flags Netif Expire > > >> default 192.168.0.1 UGS fxp0 > > >> 127.0.0.1 link#2 UH lo0 > > >> 192.168.0.0/24 link#1 U fxp0 > > >> 192.168.0.12 link#1 UHS lo0 > > > > > > This looks like the routing table for the machine which is not > > > working, with the default set to 192.168.0.1. If you run "netstat > > > -rn" from one of the machines which *is* working (as suggested > > > above), it should show a default route with the IP address of the > > > actual router. That is the IP address you need to use on the > > > machine which is not working. > > > > I just ran netstat -rn on the FreeBSD tower I'm running now and the > > default address is identical. I checked the ISP's webpage for the > > modem that that's the address it uses as well. > > > > I tinkered with the laptop this past weekend and I found the > > following: > > > > - the machine won't connect with the modem when even when running a > > liveCD version of FreeBSD (both 10 and 11)--all attempts to ping a URL > > failed > > - the machine updates the file: > > > > /var/db/dhclient.leases.nfe0 > > > > but it doesn't add anything > > - as a test, I created a backup of that file, deleted the original, > > and found that the machine will still create and write to it, but > > doesn't add anything > > - the last update of that file roughly corresponds to the time and > > date when I connected that modem > > > > A while ago, I installed FreeBSD 10.x on an old IBM ThinkPad and I was > > successfully send pings to the same URL as before. > > > > This is becoming interesting.... > > > try this: > > route flush > route add 192.168.0.1 > > You can test now. Try to ping "step by step": first your router by IP, then a public IP address which definitely will answer (for example 8.8.8.8), and then something that involves name resolution (for example www.startpage.com). If name resolution is a problem, the ISP's DNS (or the DNS you are using) should be examined (dig / drill). > If it still does not work, set the network configuration to manual. > Check with the router what address range is reserved for manual usage. > If nothing is reserved, reserve a block of 16, 32 or what ever you like > addresses. Enter one of these addresses into your /etc/rc.conf and try > again. It's still not clear (to me) if the router/modem provides DHCP or not. If it doesn't, manual configuration is needed, but if it does provide DHCP, this should be used - and investigated if it doesn't work as expected. > You also could try to run dhclient manually. I still suggest running tcpdump (or Wireshark) in parallel to see the corresponding traffic. If the machine (for unknown reasons) doesn't get the DHCP handshake right - it needs to perform the required network traffic and should also update certain files and interface settings - there is a reason for it. It would sound strange that a defective network card can cause this strange kind of behaviour, but it's still possible... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...