From owner-freebsd-questions@FreeBSD.ORG Fri Jan 20 18:33:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D19B16A41F for ; Fri, 20 Jan 2006 18:33:06 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-142-072.chi1.dsl.speakeasy.net [64.81.142.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77C2143D46 for ; Fri, 20 Jan 2006 18:33:05 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p17.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.5/8.12.11) with ESMTP id k0KIWmEB063900; Fri, 20 Jan 2006 12:32:48 -0600 (CST) Message-Id: <6.0.0.22.2.20060120123154.025c07c0@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Fri, 20 Jan 2006 12:32:30 -0600 To: =?iso-8859-1?Q?=22Alvaro_J=2E_Gurdi=E1n=22?= , FreeBSD-Questions Questions From: Derek Ragona In-Reply-To: References: Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-MailScanner-From: derek@computinginnovations.com Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: cannot ping anything X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 18:33:06 -0000 Check your /etc/rc.conf for this line: defaultrouter=3D"192.168.1.1" add it and reboot if it is missing -Derek At 12:26 PM 1/20/2006, Alvaro J. Gurdi=E1n wrote: >Yesterday I placed an HD with Freebsd 5.3 release in a Dell Dimension=20 >L800CXE. It booted properly. ( since it's running a generic kernel with=20 >only a name change) > >However I could not ping anything inside or outside the LAN. >Ex: >ping google.com >ping: cannot resolve google.com: Hostname lookup failure > >ping 192.168.1.1 >ping: sendto: No route to host > >I tried several addresses inside the LAN, 127.0.0.1, localhost,=20 >192.168.1.128, and all gave the same result. > >I was previously using this HD in another machine to test IPF, with NAT=20 >also, and it worked peerfectly there. > > >So just to be safe I erased the contents of /etc/rc.conf, and then used=20 >sysinstall to bring up my NIC. I chose NO for IPv6, and YES for DHCP. > >That seemed to work correctly, just to be sure I ran ifconfig: >dc0: flags=3D108843 MTU 1500 > options=3D8 > inet 192.168.1.128 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:80:ad:81:1a:9f > media: Ethernat autoselect (100baseTX) > status: active >plip0: flags=3D108810 mtu 1500 >lo0: flags=3D8049 mtu 1500 > inet 127.0.0.1 netmask 0xff000000 > >Still, things are looking good; so, I go to another box, log into my=20 >router(192.168.1.1), and I can see the MAC address of the BSD box on my= router. > > >However, I still get the same results when I ping as I did above. > >Then I checked the routing tables: > >netstat -r >Routing Tables > >Internet: >Destination Gateway Flags Refs Use Netif = Expire >default 192.168.1.1 UGS 0 6 dc0 >localhost localhost UH 1= =20 > 37 lo0 >192.168.1 link#1 UC 0 0= =20 > dc0 >192.168.1.1 00:0c:41:bd:49:7d UHLW 1 0 dc0 695 >192.168.1.128 localhost UGHS 0 0 lo0 > >The output of netstat and ifconfig aboe are from today. I began having=20 >this problem yesterday, and left the box on over night. Yesterday's=20 >output was different in that the BSD box had a different IP address,=20 >192.168.1.122. That is fine I understand that the box is communicating=20 >with the router and negotiating leases when they expire. However, why has= =20 >the gateway to 192.168.1.1 changed from link#1 to the MAC address of my=20 >router. I am certain that if I restart the computer that same gateway=20 >will revert to link#1. > >The my questions are: >How do I get the system to see others in the network, and vice-versa? >What should the gateway for 192.168.1.1 be?(which also happens to be my=20 >routers address) > > >I am hoping it is something simple. I could just as have easily=20 >reinstalled the system and started from scratch, but I wanted to know how= =20 >to solve this problem. > >Other info that might help: >less /etc/rc.conf >ifconfig_dco=3D"DHCP" >hostname=3D"fw.company.com" >defaultrouter=3D"192.168.1.1" > >less /etc/resolv.conf >search carolina.rr.com >nameserver 24.25.5.60 >naemserver 24.25.5.61 > >less /etc/hosts >::1 localhost.company.com localhost >127.0.0.1 localhost.company.com localhost > >Thanks in advance > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to= "freebsd-questions-unsubscribe@freebsd.org"