wireless and/or routing question

Waitman Gobble gobble.wa at gmail.com
Fri Jan 13 15:03:12 UTC 2012


On Thu, Jan 12, 2012 at 11:29 PM, Da Rock <
freebsd-questions at herveybayaustralia.com.au> wrote:

> 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<freebsd-questions at 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<UP,BROADCAST,****RUNNING,SIMPLEX,MULTICAST>   metric
>>>> 0 mtu
>>>>
>>>> 2290
>>>> ether 00:24:2b:ad:d6:5f
>>>> nd6 options=29<PERFORMNUD,****IFDISABLED,AUTO_LINKLOCAL>
>>>>
>>>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
>>>> status: associated
>>>>
>>>>  wlan0: flags=8843<UP,BROADCAST,****RUNNING,SIMPLEX,MULTICAST>
>>>> 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<PERFORMNUD,****IFDISABLED,AUTO_LINKLOCAL>
>>>>
>>>> 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<UP,BROADCAST,****RUNNING,SIMPLEX,MULTICAST>   metric
>>>> 0 mtu
>>>> 1500
>>>> options=c319a<TXCSUM,VLAN_MTU,****VLAN_HWTAGGING,VLAN_HWCSUM,****
>>>> 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<PERFORMNUD,****IFDISABLED,AUTO_LINKLOCAL>
>>>>
>>>> media: Ethernet autoselect (100baseTX<full-duplex>)
>>>> 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<http://www.freebsd.org/doc/**handbook/network-aggregation.**html>
>>> <http://www.freebsd.org/**doc/handbook/network-**aggregation.html<http://www.freebsd.org/doc/handbook/network-aggregation.html>
>>> >
>>>
>>>
>>> Good luck and happy networking!
>>> ______________________________****_________________
>>> freebsd-questions at freebsd.org mailing list
>>> http://lists.freebsd.org/****mailman/listinfo/freebsd-****questions<http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions>
>>> <http://lists.**freebsd.org/mailman/listinfo/**freebsd-questions<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>
>>> >
>>> To unsubscribe, send any mail to "freebsd-questions-**
>>> unsubscribe at freebsd.org<freebs**d-questions-unsubscribe@**freebsd.org<freebsd-questions-unsubscribe at 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.
>
> ______________________________**_________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>
> To unsubscribe, send any mail to "freebsd-questions-**
> unsubscribe at freebsd.org <freebsd-questions-unsubscribe at freebsd.org>"
>



Hi,

Thanks. I've always heard countless rumors about WPA being wise :) I'll
take your advice and take a step up in technology. My "stubborn
conservatism" probably roots back to the time when not all devices could do
WPA, or at least I had crazy trouble getting things to work. But this
learned attitude was probably around 2000, which was like a million years
ago with dinosaurs and stuff. Time for me to finally get with it.

I found the lagg documenation in docs
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html

Duh! I went through wireless section in the handbook several times, I don't
know how i missed this paragraph in 32.3.6:

"We will cover link aggregation and failover in Section
32.6<http://www.freebsd.org/doc/handbook/network-aggregation.html>
where
an example for using both wired and wireless connection is also
provided at Example
32-3<http://www.freebsd.org/doc/handbook/network-aggregation.html#NETWORKING-LAGG-WIRED-AND-WIRELESS>
."

Thanks again,

Waitman


More information about the freebsd-questions mailing list