From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 07:33:29 2012 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 8C200106564A for ; Fri, 13 Jan 2012 07:33:29 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id E7AA58FC18 for ; Fri, 13 Jan 2012 07:33:28 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id D9B4E5C26 for ; Fri, 13 Jan 2012 17:45:58 +1000 (EST) Message-ID: <4F0FDD54.3000402@herveybayaustralia.com.au> Date: Fri, 13 Jan 2012 17:29:24 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F0FC951.60409@herveybayaustralia.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: wireless and/or routing question 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, 13 Jan 2012 07:33:29 -0000 On 01/13/12 17:11, Waitman Gobble wrote: > On Thu, Jan 12, 2012 at 10:04 PM, Da Rock< > freebsd-questions@herveybayaustralia.com.au> wrote: > >> On 01/13/12 15:29, Waitman Gobble wrote: >> >>> Hello, >>> >>> I am running 9.0-RC3 i386 on an Acer Aspire One D150. i am having trouble >>> with the wireless setup. >>> >>> I have two wireless cards, the BCM94312MCG that came with it, and an >>> Atheros 5424/2424 that i swapped out. I can run the BCM with ndis and the >>> windows xp driver, and the Atheros with the ath driver that is installed >>> with FreeBSD. (But BCM/ndis is noticeably much slower, Atheros - no green >>> "wireless" light appears on netbook ) >>> >>> i am getting the same results with either nic card, and i think i am just >>> missing something simple. >>> >>> >>> ath0: flags=8843 metric 0 mtu >>> 2290 >>> ether 00:24:2b:ad:d6:5f >>> nd6 options=29 >>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >>> status: associated >>> >>> wlan0: flags=8843 metric 0 >>> mtu 1500 >>> ether 00:24:2b:ad:d6:5f >>> inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255 >>> nd6 options=29 >>> media: IEEE 802.11 Wireless Ethernet OFDM/24Mbps mode 11g >>> status: associated >>> ssid CUDAPANG channel 6 (2437 MHz 11g) bssid 00:22:3f:9b:b8:aa >>> regdomain 101 indoor ecm authmode OPEN privacy ON deftxkey 1 >>> wepkey 1:104-bit txpower 20 bmiss 7 scanvalid 60 bgscan >>> bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS >>> wme burst >>> >>> connecting: >>> >>> ifconfig wlan0 create wlandev ath0 >>> ifconfig wlan0 up scan >>> ifconfig wlan0 inet 10.0.0.21 netmask 255.255.255.0 ssid CUDAPANG wepmode >>> on weptxkey 1 wepkey 1:0x10961323931B628F844360718A >>> >>> >>> scan results: >>> >>> p00ntang# ifconfig wlan0 up scan >>> SSID/MESH ID BSSID CHAN RATE S:N INT CAPS >>> CUDAPANG 00:22:3f:9a:16:1b 6 54M -69:-93 100 EPS ATH >>> CUDAPANG 00:22:3f:9b:b8:aa 6 54M -68:-93 100 EPS WME ATH >>> Abujie 00:14:6c:7a:98:ec 6 54M -89:-93 100 EPS RSN WPA ATH >>> TDMA >>> chavez family 00:c0:02:11:22:33 6 54M -88:-93 100 EP HTCAP RSN >>> WME WPS >>> >>> My machine shows up on the wireless router as a "connected device" w/ >>> correct mac and ip showing >>> >>> But i cannot ping gw, no machine on lan or outside. (no route to host) >>> >>> p00ntang# netstat -nr >>> Routing tables >>> >>> Internet: >>> Destination Gateway Flags Refs Use Netif Expire >>> default 10.0.0.1 UGS 0 3338 ale0 >>> 10.0.0.0/24 link#2 U 0 2405 ale0 >>> 10.0.0.20 link#2 UHS 0 0 lo0 >>> 10.0.0.21 link#9 UHS 0 2 lo0 >>> 127.0.0.1 link#8 UH 0 12 lo0 >>> >>> I do not see "ath0' or wlan0 in the routing table under 'Netif', not sure >>> if that's the problem :) >>> >>> >>> p00ntang# less /etc/rc.conf >>> hostname="p00ntang" >>> ifconfig_ale0=" inet 10.0.0.20 netmask 255.255.255.0" >>> defaultrouter="10.0.0.1" >>> sshd_enable="YES" >>> ntpd_enable="YES" >>> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable >>> dumpdev="NO" >>> fusefs_enable="YES" >>> hald_enable="YES" >>> dbus_enable="YES" >>> moused_enable="YES" >>> snddetect_enable="YES" >>> mixer_enable="YES" >>> avahi_daemon_enable="YES" >>> ices0_enable="YES" >>> >>> >>> p00ntang# grep ath /boot/loader.conf >>> if_ath_load="YES" >>> p00ntang# grep wlan /boot/loader.conf >>> wlan_wep_load="YES" >>> wlan_ccmp_load="YES" >>> wlan_tkip_load="YES" >>> >>> >>> >>> i've tried /etc/rc.d/routing restart.. no worky :) >>> >>> here's my wired connection ifconfig --- wired connection works :) >>> >>> ale0: flags=8843 metric 0 mtu >>> 1500 >>> options=c319a>> TSO4,WOL_MCAST,WOL_MAGIC,VLAN_**HWTSO,LINKSTATE> >>> ether 00:23:5a:59:e1:e4 >>> inet 10.0.0.20 netmask 0xffffff00 broadcast 10.0.0.255 >>> inet6 fe80::223:5aff:fe59:e1e4%ale0 prefixlen 64 scopeid 0x2 >>> nd6 options=29 >>> media: Ethernet autoselect (100baseTX) >>> status: active >>> >>> >>> >>> >>> any help/suggestions much appreciated! >>> >> The solution is simple, but I know the frustration well. >> >> Your problem is that the route is looking to go through your wired network >> port, you started the network on the wired and then switched to wifi so the >> routing needs to change. >> >> Run as root: "route change default -interface wlan0" will fix that >> temporarily. To fix it permanently (better for a laptop situation anyway, I >> feel), setup a lagg port including ale0 and wlan0. See >> http://www.freebsd.org/doc/**handbook/network-aggregation.**html >> >> Good luck and happy networking! >> ______________________________**_________________ >> 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" >> > > Thanks, that's very helpful - seems to be the issue. Getting rid of my ale0 > ifconfig spec in rc.conf also seems to solve the problem. But I'm dropping > roughly 20% packets on ping so i'm going to see what's up. Otherwise i'm > now semi-functional on the wireless connection. Ahh, yes. Those were the days before lagg... endless frustration. I was looking at finding a way to use devd to run a script that made the route change, but then this feature came round and I was happy. You may want to change to wpa- more secure than wep.