From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 17:03:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BBD61065672 for ; Mon, 29 Jun 2009 17:03:41 +0000 (UTC) (envelope-from rjhjr0@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 2706C8FC17 for ; Mon, 29 Jun 2009 17:03:40 +0000 (UTC) (envelope-from rjhjr0@gmail.com) Received: by qw-out-2122.google.com with SMTP id 5so745307qwd.7 for ; Mon, 29 Jun 2009 10:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=JOFmshhASbRx0YyaX0E68D+CNI3Pay0s6OwvfPj2z8Q=; b=WZ7hMpEDnp8wDwT6Tg/C52ghN2QJ4EnUiRcmEnuOc8yc6tAvrRIZRlhT9wk0aoWYAW jv6j2WVDeQOiqavNImbeVBayAXXTIUmLIJbKoSlPQqAi0O/8pDlCyY/RAK2kVZrj1W/M NVoOKvWWOuHYTD1DSYMQHQRdD8NLClj/U8gqE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=gCwfLWaR2kXvr3vJxJsEJlV/hRvRpO6zrYZERY3ONgeUGbjuUEbkIEnerQ2z2M19MK qdrSiR7aFc8z/q+c7SW18kYqnoEfKvEVcbWr84xC+okwipIHq9yxxR9/lKhSrqIAxCVQ D90+I3F6ma15G+HSgIMLL+ACZR54Q+VQ50ZoU= MIME-Version: 1.0 Received: by 10.231.11.136 with SMTP id t8mr614346ibt.50.1246293054560; Mon, 29 Jun 2009 09:30:54 -0700 (PDT) Date: Mon, 29 Jun 2009 12:30:54 -0400 Message-ID: <3d5d3ca90906290930n78325bd5wdf2b5a9dc144f430@mail.gmail.com> From: Robert Hall To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: DHCP using ral 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: Mon, 29 Jun 2009 17:03:41 -0000 I'm trying to set up a connection between an FBSD box and a wireless access point. The background is that there's no security on this network; as the person who set it up says, "You just start your computer and it works!" I have an XP box with a wireless NIC working, but I don't want to use the XP box as the gateway for my personal lan to an insecure network. On the XP box, if I point a browser to 192.168.1.1, I'm told that the router is "WRT54GX2", which I take to be a popular Linksys router. I don't have physical access to the router and I don't have the password for the router. I've got a wireless Linksys NIC that uses the ral driver facing the wireless router. The NIC facing my lan uses the em driver and is working fine. "uname -a" says FreeBSD 7.2-RELEASE #0. In rc.conf I have ifconfig_ral0="DHCP" After booting, if I ping 192.168.1.1, I get "no route to host" and I have no lease file in /var/db. "ifconfig ral0" tells me that I have no inet address associated with ral0, status is "no carrier", and the ssid is an empty string. "dhclient ral0" sends a series of DHCPDISCOVER messages, but I get no DHCPOFFER messages, and I get an empty lease file. If I run "ifconfig ral0" again, inet is 0.0.0.0, status is "associated", and ssid is the proper ssid for the wireless router. "ifconfig ral0 list scan" gives the proper information for the router. At some point I did get a proper lease. I don't know when or how. I've never had a usable connection to the router from the FBSD box, and I've never had access to the nameservers listed in the lease. If I rename the old lease file to dhcp.leases.ral0, and then run "dhclient ral0", I send 3 DHCPREQUEST messages, 2 DHCPDISCOVER messages, 2 DHCPREQUEST messages, and 6 DHCPDISCOVER messages. dhclient tells me that no DHCPOFFERs were received, and it binds to the address in lease file, 192.168.1.104. However, "ifconfig ral0" shows no inet address. I still can't ping the router. "ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0" assigns the specified values. Ping no longer tells me that there's no route to the host, but I'm getting about 95% packet loss. "netstat -r" now shows that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a usable connection. resolv.conf says "nameserver 192.168.0.1", which is the nameserver for my personal lan. I can't nslookup URLs outside of my lan. If I manually add the nameservers in the dhcp lease, I can nslookup www.google.com. But ping has 100% packet loss. /etc/hosts associates 127.0.0.1 with localhost.krig.net, and 192.168.0.6 with stamfordbru.krig.net, which is correct for my lan. I'm stumped. :) I don't know if this is related; the XP box is telling me that the router has no connection to the internet, but it obviously does have a connection because the XP box can load web pages and I can use my gmail account. Thanks for any help.