From owner-freebsd-questions@FreeBSD.ORG Fri Jan 20 20:34:24 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 861D516A41F for ; Fri, 20 Jan 2006 20:34:24 +0000 (GMT) (envelope-from AJGurdian@lanoticia.com) Received: from xbox00.csee.siteprotect.com (xbox00.csee.siteprotect.com [64.41.126.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10DC143D45 for ; Fri, 20 Jan 2006 20:34:23 +0000 (GMT) (envelope-from AJGurdian@lanoticia.com) Received: from [192.168.1.117] (rrcs-24-123-186-213.se.biz.rr.com [24.123.186.213]) by xbox00.csee.siteprotect.com (Postfix) with ESMTP id 14FC2D8080 for ; Fri, 20 Jan 2006 14:34:22 -0600 (CST) Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <6.0.0.22.2.20060120133722.025b9850@mail.computinginnovations.com> References: <6.0.0.22.2.20060120123154.025c07c0@mail.computinginnovations.com> <3782a16465b4e0bec305f4b151acc8fe@lanoticia.com> <6.0.0.22.2.20060120133722.025b9850@mail.computinginnovations.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <68ed1dc6d6f5d3b2df0ae9f29fbe1346@lanoticia.com> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Alvaro_J._Gurdi=E1n?= Date: Fri, 20 Jan 2006 15:34:05 -0500 To: FreeBSD-Questions Questions X-Mailer: Apple Mail (2.623) 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 20:34:24 -0000 I tried both of those and got the same result, ping: sendto: No route=20 to host. I examined my dmesg output a little closer and noticed: IP Filter: v3.4.35 initialized. Default =3D block all, Logging =3D = enabled This means that my assumption of disabling IPF by removing all of the=20 comments tertainin to it and IPNat from /etc/rc.conf were wrong because=20= it it compiled statically. This means that there is no way to turn it=20= off, right? So I reloaded my old /etc.rc.conf with the somments to turn on IPF and=20= IPNat, and point to their rules files. The previous computer this HD was installed on had two NICs sis0 and=20 sis1. sis0 was connected to the WAN, so I just changed sis0 in all the=20 comments to dc0. I made sure there was a statement that allowed ICMP=20 statements thru. I restarted, and things stayed the same, so I went back to=20 /etc/ipf.rules and changed all instances of sis1 to dc0, also maing=20 sure the ICMP statement was there. I restarted again and, once again ,no progress. Since the previous=20 machine had two interfaces this is most likely the issue since nat is=20 messing things up. I have to get moving forward with this project so I am simply=20 downloading the new 6.0 release. This should solve the problem. Thanks anyway On Jan 20, 2006, at 2:43 PM, Derek Ragona wrote: > See if you can ping your own interface. You should be able to ping it=20= > on both the loop back 127.0.0.1 and the 192.168.1.128 address. > > If you can ping those and still not the router at 192.168.1.1 check=20 > for other defaultrouter statements. If you have only one of these=20 > statements, I would bring down the interface and bring it up manually=20= > until you find the correct settings. For instance you may need to set=20= > the line speed 1t 10 MBs, or 100 MBs or 1000 Mbs, or set the duplex=20 > setting. Oh and check the LED's on your ethernet interface and router=20= > and hub/switches to be sure you didn't knock a cable loose. > > -Derek > > > At 12:50 PM 1/20/2006, Alvaro J. Gurdi=E1n wrote: >> thanks, but the defaultrouter line was already present in my=20 >> /etc/rc.conf. >> >> On Jan 20, 2006, at 1:32 PM, Derek Ragona wrote: >> >>> 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=20 >>>> Dimension L800CXE. It booted properly. ( since it's running a=20 >>>> generic kernel with 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=20= >>>> NAT also, and it worked peerfectly there. >>>> >>>> >>>> So just to be safe I erased the contents of /etc/rc.conf, and then=20= >>>> used sysinstall to bring up my NIC. I chose NO for IPv6, and YES=20= >>>> 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=20 >>>> 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=20= >>>> my router(192.168.1.1), and I can see the MAC address of the BSD=20 >>>> 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 =20 >>>> Netif Expire >>>> default 192.168.1.1 UGS 0 6 >>>> dc0 >>>> localhost localhost UH >>>> 1 37 lo0 >>>> 192.168.1 link#1 UC 0 >>>> 0 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=20 >>>> having this problem yesterday, and left the box on over night. >>>> Yesterday's output was different in that the BSD box had a=20 >>>> different IP address, 192.168.1.122. That is fine I understand=20 >>>> that the box is communicating with the router and negotiating=20 >>>> leases when they expire. However, why has the gateway to=20 >>>> 192.168.1.1 changed from link#1 to the MAC address of my router. I=20= >>>> am certain that if I restart the computer that same gateway will=20= >>>> revert to link#1. >>>> >>>> The my questions are: >>>> How do I get the system to see others in the network, and=20 >>>> vice-versa? >>>> What should the gateway for 192.168.1.1 be?(which also happens to=20= >>>> be my 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=20 >>>> know how 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=20 >>>> "freebsd-questions-unsubscribe@freebsd.org" >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to=20 >>> "freebsd-questions-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to=20 >> "freebsd-questions-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to=20 > "freebsd-questions-unsubscribe@freebsd.org" >