From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 07:11: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 31021106566B for ; Fri, 13 Jan 2012 07:11:29 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id EDD7C8FC0C for ; Fri, 13 Jan 2012 07:11:28 +0000 (UTC) Received: by iazz13 with SMTP id z13so5879151iaz.13 for ; Thu, 12 Jan 2012 23:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0ZxLp6JVIBcdV5IvFbmZ3MyU+9l2r5IOWjKuI0oeeWU=; b=Hng9rczVY0+b+iA55AhJNREikdFH7sP0QC+gk5VFYX/wtaB2a/Y5zbS5EtbIVZSSMm VPnQYH0VoNQUHnFOPxUnIXY/eSguBYiW9lVP3xYuCc+97sXgQ7yAN86ToBCb1CuygILc +Z8Vqvl3jTtt92O/YIijBwm9fx3zKIxCQsPpE= MIME-Version: 1.0 Received: by 10.50.76.162 with SMTP id l2mr5150204igw.1.1326438688253; Thu, 12 Jan 2012 23:11:28 -0800 (PST) Received: by 10.231.31.65 with HTTP; Thu, 12 Jan 2012 23:11:28 -0800 (PST) In-Reply-To: <4F0FC951.60409@herveybayaustralia.com.au> References: <4F0FC951.60409@herveybayaustralia.com.au> Date: Thu, 12 Jan 2012 23:11:28 -0800 Message-ID: From: Waitman Gobble To: Da Rock Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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:11:29 -0000 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. Waitman