wireless and/or routing question
Waitman Gobble
gobble.wa at gmail.com
Fri Jan 13 07:11:29 UTC 2012
On Thu, Jan 12, 2012 at 10:04 PM, Da Rock <
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>
>
> 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>
> To unsubscribe, send any mail to "freebsd-questions-**
> unsubscribe at 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.
Waitman
More information about the freebsd-questions
mailing list