Hello list, I was installing driver for Netgear MA111 wireless USB card
in debian OS. For this, I used linux-wlan-ng project. After installing and
configuring the driver, I wasn’t able to connect to the network and getting
“destination host unreachable” by ping command: debian:/tmp/linux-wlan-ng/examples# ping
192.168.0.11 PING 192.168.0.11 (192.168.0.11) 56(84) bytes of
data. From 192.168.0.12 icmp_seq=1 Destination Host
Unreachable From 192.168.0.12 icmp_seq=2 Destination Host
Unreachable From 192.168.0.12 icmp_seq=3 Destination Host
Unreachable Kernel I am using: debian:/tmp/linux-wlan-ng/examples# uname -a Linux debian 2.6.22-mip6 #2 Thu Sep 20 18:26:31 JST
2007 i686 GNU/Linux This is a pre-compiled kernel for NEMO(Network
Mobility) test bed implementation. What I did: 1. Install linux-wlan-ng user space
driver: dpkg -i linux-wlan-ng.deb 2. Build and install
linux-wlan-ng kernel space driver: dpkg -i
linux-wlan-ng-source_0.2.8+svn1839+dfsg-1_all.deb m-a build
linux-wlan-ng-modules m-a install
linux-wlan-ng-modules 3. Edit rc.local file debian:/home/sazzad# vi /etc/rc.local # By default this script does nothing. modprobe prism2_usb wlanctl-ng wlan0 lnxreq_ifstate
ifstate=enable wlanctl-ng wlan0 lnxreq_autojoin ssid=HA_SSID
authtype=opensystem ifconfig wlan0 192.168.0.12 netmask
255.255.255.0 broadcast 192.168.0.255 route add default gw 192.168.0.11 exit 0 4. Configure wlan.conf debian:/home/sazzad# vi /etc/wlan/wlan.conf WLAN_DEVICES="wlan0" # Below is the list of channels to scan, when
we scan. ChannelList="01:02:03:04:05:06:07:08:09:0a:0b:00:00:00" # Below is the min and max time we linger on
a channel during a scan. ChannelMinTime=200 ChannelMaxTime=250 # And here we have the master scan toggle. WLAN_SCAN=y # if you want
temporary files to go elsewhere, change this. TMPDIR=/tmp ########## # Note: To bind to a specific network,
change the SSID to something different #
and create the file /etc/wlan/wlancfg-<SSID> with your network- #
specific settings. If this file is not present, the settings in # /etc/wlancfg/wlancfg-DEFAULT
are used. # # for example: #
SSID_wlan0="linux-wlan" # This expects a file called
"/etc/wlan/wlancfg-linux-wlan" to be present. # # Use a SSID of "" to associate
with any network in range. ######### #SSID_wlan0="" SSID_wlan0="HA_SSID" ENABLE_wlan0=y #SSID_wlan1="" #ENABLE_wlan1=n #SSID_wlan2="" #ENABLE_wlan2=n 5. Configure wlancfg-HA_SSID debian:/home/sazzad# vi
/etc/wlan/wlancfg-HA_SSID #=======SELECT STATION MODE=================== IS_ADHOC=y
# y|n, y - adhoc, n - infrastructure #======= INFRASTRUCTURE STATION
=================== # What kind of authentication? AuthType="opensystem"
# opensystem | sharedkey (requires WEP) #======= ADHOC STATION
============================ BCNINT=100
# Beacon interval (in Kus) CHANNEL=6
# DS channel for BSS (1-14, depends
# on regulatory domain) BASICRATES="2
4"
# Rates for mgmt&ctl frames (in 500Kb/s) OPRATES="2 4 11
22"
# Supported rates in BSS (in 500Kb/s) 6. Check linux-wlan module is
running: debian:/home/sazzad# modprobe -l /lib/modules/2.6.22-mip6/linux-wlan-ng/prism2_plx.ko /lib/modules/2.6.22-mip6/linux-wlan-ng/prism2_pci.ko /lib/modules/2.6.22-mip6/linux-wlan-ng/p80211.ko /lib/modules/2.6.22-mip6/linux-wlan-ng/prism2_usb.ko 7. Check configuration debian:/tmp/linux-wlan-ng/examples# ifconfig eth0 Link
encap:Ethernet HWaddr 00:50:04:6F:BA:14
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16 Base address:0x8b80 eth1 Link
encap:Ethernet HWaddr 00:08:A1:99:DB:14
inet addr:129.15.78.111 Bcast:129.15.78.255 Mask:255.255.255.0
inet6 addr: 2001:468:a02:78:208:a1ff:fe99:db14/64 Scope:Global
inet6 addr: fe80::208:a1ff:fe99:db14/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7329 errors:0 dropped:0 overruns:0 frame:0
TX packets:2682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7050460 (6.7 MiB) TX bytes:299472 (292.4 KiB)
Interrupt:18 Base address:0xde00 lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:122 errors:0 dropped:0 overruns:0 frame:0
TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13080 (12.7 KiB) TX bytes:13080 (12.7 KiB) wlan0 Link
encap:Ethernet HWaddr 00:09:5B:67:AE:0F
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6948 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1143411 (1.0 MiB) TX bytes:0 (0.0 b) debian:/tmp/linux-wlan-ng/examples#
route –n Kernel IP routing table Destination
Gateway
Genmask Flags Metric
Ref Use Iface 192.168.0.0
0.0.0.0
255.255.255.0 U
0 0 0
wlan0 129.15.78.0
0.0.0.0
255.255.255.0 U
0 0 0
eth1 0.0.0.0
192.168.0.11
0.0.0.0 UG
0 0 0
wlan0 0.0.0.0
129.15.78.1
0.0.0.0 UG
0 0 0
eth1 debian:/tmp/linux-wlan-ng/examples# I did the same configuration for another Debian PC
and trying to connect them in ADHOC mode. But ping returns with destination
address unreachable from both of them. I would appreciate if anyone could give some suggestions on
this regard. Best Regards, Md Sazzadur Rahman Graduate Student, School of Computer Science, University of Oklahoma, Norman, Oklahoma, USA |