cant configure wireless usb with prism2 chipset

apu95

Caffeine-->Code Converter
Joined
25 Apr 2002
Messages
502
i downloaded the linux-wlan-ng drivers and followed the instructions on the site to enable my device. for some reason it doesnt work...i checked over all the files that are referred to in the guide and all of them are completed as they should be, unless i got confused in some part.
when i was configuring it, there was a line that said
ifconfig wlan0 <yourIP> netmask <yourNetmask> broadcast <yourBroadcast>

my ip would be 192.168.1.3, netmask 255.255.255.0 but the broadcast i dont know. ive never seen this one before...

the weird thing is that yesterday i was able to go into my router's configuration but not on the internet (that was because i hadnt included the DNS info). today i cant even go to the router config.

i installed MDK 9.2 yesterday with everything in it, as well as anything needed by the wlan drivers so im not missing anything that may be required.

thanks!
Apu
 
try something like

ifconfig wlan0 inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255 mode 11b ssid WirelessSSID channel WirelessLanChannel

the 0xffffff00 is the 255.255.255.0 subnet in hex btw which is apparently the way you are supposed to give it to ifconfig

also this doesnt set your DNS servers as you mentioned those, they go into /etc/resolv.conf in the format
nameserver serverIP
 
ok, i just finished reinstalling the wlan drivers for the dell truemobile 1180 usb adapter (uses prism2 chipset). i finally figured out how to properly connect to my router, and i tested the connection using ping and linneighborhood to see for my windows pc's.

i configured the resolv.conf file to my nameservers in the format of:

nameserver IP Address

and I saved the file. i went into a browser and went into my router's config, everything worked perfectly, asked for my password and I was in. the problem is that that is the only page i can connect to. if i try any normal website (www.hotmail.com for example), it wont go into it. i tried a bunch of pages, just in case the other ones could've been down, but no webpages other than the router's config load up.

im not sure where the problem might be lying cuz i have my ip properly configured (as far as i know) and i ran the instructions exactly on the wlan driver's guide.

it says i have to do a port reset (due to a bug in the prism driver) so i just unplug my adapter, plug it back in, i run the rc.wlan script, then i run the commands in order to load the driver into memory (wlanctl-ng, ifconfig, etc), and thats it, im connected to the router.

as far as i know, it should be loading up pages....anyone have any ideas on why this is happening?

something weird that i noticed, is that when i unplug and plug in the adapter, there is another nameserver added automatically to the resolv.conf file. the server is 127.0.0.0 or somethin like that, but i know its my pc. is this normal as well?

thx!
Apu
 
if the MDK has a DHCP client anything like the one in freebsd then it will overwrite the existing resolv.conf file with the nameservers it gets from the DHCP server, which can be annoying, I have modified my dhclient-script file to add 127.0.0.1 as the first entry, then the nameservers from DHCP and then a bunch of other ones which I have prestored in another file and it just concatinates those to the resolv.conf file. (I have nameserver 127.0.0.1 because I run a dnscache locally on my machine)

though it looks like you arent using DHCP on the wireless card.
have you tried running
ifconfig wlan0 up
once you have done everything else just to make sure the interface is up. Also if you can attach copies of your ifconfig output or something like that

also what happens when you do something like
dig hotmail.com
or
dig osnn.net

these should give you the DNS lookups on those two domains
 
thx for the replies Geffy...
i just tried what u told me...

here's the total output i got, from when i started the adapter up until when i did the dig

***************************
[root@localhost etc]# sh rc.wlan start
Starting WLAN Devices:message=dot11req_mibset
mibattribute=dot11PrivacyInvoked=false
resultcode=success
message=dot11req_mibset

mibattribute=dot11ExcludeUnencrypted=false
resultcode=success [ OK ]
[root@localhost etc]# modprobe prism2_usb prism2_doreset=1
[root@localhost etc]# wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable

message=lnxreq_ifstate
ifstate=enable
resultcode=success
[root@localhost etc]# wlanctl-ng wlan0 lnxreq_autojoin ssid=FamAsenjo

authtype=opensystem
message=lnxreq_autojoin
ssid='FamAsenjo'
authtype=opensystem
resultcode=success
[root@localhost etc]# ifconfig wlan0 192.168.1.3
[root@localhost etc]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=150 time=10.7 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=150 time=7.65 ms
[1]+ Stopped ping 192.168.1.1
[root@localhost etc]# ifconfig wlan0 up
[root@localhost etc]# dig hotmail.com
;; Got SERVFAIL reply from 127.0.0.1, trying next server
; <<>> DiG 9.2.3rc2 <<>> hotmail.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost etc]#
**********************************

up to the point of the pinging of the router everything went pretty well. when i ran ifconfig wlan0 up it didnt display anything, it just went to another
'[root@localhost etc]#' line, no output no nothing.
for the dig command....well, its pretty much self explainatory, it went to hell
:D
it looked again for the 127.0.0.1 (which was probably added to the resolv.conf automatically, as far as i know) and then when it tried the other two servers (which are correctly written into the resolv.conf, i checked them in the router's config) and got a timeout (i found that weird....)
 
lets try bypassing the resolv.conf file

try
dig @217.79.96.71 hotmail.com
217.79.96.71 is my ISPs secondary nameserver

should get some output like
[geffy@squidge ~]$ dig @217.79.96.71 hotmail.com

; <<>> DiG 8.3 <<>> @217.79.96.71 hotmail.com
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39225
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 4
;; QUERY SECTION:
;; hotmail.com, type = A, class = IN

;; ANSWER SECTION:
hotmail.com. 1H IN A 64.4.32.7
hotmail.com. 1H IN A 64.4.33.7
hotmail.com. 1H IN A 64.4.52.7

;; AUTHORITY SECTION:
hotmail.com. 1H IN NS ns3.hotmail.com.
hotmail.com. 1H IN NS ns4.hotmail.com.
hotmail.com. 1H IN NS ns1.hotmail.com.
hotmail.com. 1H IN NS ns2.hotmail.com.

;; ADDITIONAL SECTION:
ns1.hotmail.com. 48m53s IN A 216.200.206.140
ns2.hotmail.com. 48m53s IN A 216.200.206.139
ns3.hotmail.com. 48m53s IN A 209.185.130.68
ns4.hotmail.com. 48m53s IN A 64.4.29.24

;; Total query time: 183 msec
;; FROM: squidge.stealth-ninja.co.uk to SERVER: 217.79.96.71
;; WHEN: Sat Apr 24 19:51:02 2004
;; MSG SIZE sent: 29 rcvd: 213
 
hey Geffy, thx again for the reply....
i just tried the dig command again, with both of the router's DNS servers and neither of them worked :(
i did stumble on to something, although it may be normal and not have to do with my problem. after trying dig @DNS Server hotmail.com for both servers, i tried the dig command with my router's ip: dig @192.168.1.1 hotmail.com
and i got what i was supposed to get :confused:

heres the output so u can take a look

****************************************
[root@localhost etc]# dig @198.235.216.110 hotmail.com

; <<>> DiG 9.2.3rc2 <<>> @198.235.216.110 hotmail.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost etc]# dig @209.226.175.224 hotmail.com

; <<>> DiG 9.2.3rc2 <<>> @209.226.175.224 hotmail.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost etc]# dig @192.168.1.1 hotmail.com

; <<>> DiG 9.2.3rc2 <<>> @192.168.1.1 hotmail.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45587
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;hotmail.com. IN A

;; ANSWER SECTION:
hotmail.com. 1315 IN A 64.4.33.7
hotmail.com. 1315 IN A 64.4.52.7
hotmail.com. 1315 IN A 64.4.32.7

;; AUTHORITY SECTION:
hotmail.com. 11077 IN NS ns1.hotmail.com.
hotmail.com. 11077 IN NS ns2.hotmail.com.
hotmail.com. 11077 IN NS ns3.hotmail.com.
hotmail.com. 11077 IN NS ns4.hotmail.com.

;; ADDITIONAL SECTION:
ns1.hotmail.com. 3556 IN A 216.200.206.140
ns2.hotmail.com. 613 IN A 216.200.206.139
ns3.hotmail.com. 1212 IN A 209.185.130.68
ns4.hotmail.com. 126536 IN A 64.4.29.24

;; Query time: 484 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Apr 24 23:04:33 2004
;; MSG SIZE rcvd: 213

[root@localhost etc]#
****************************************

thx again!!
Apu
 
:D!!! i got it!!
i looked up some guides on setting up the prism2 chipset and i thought of adding the
route add default gw 192.168.1.1
command into the script i made to start up the adapter, and it worked!!

thanks a lot for your help geffy!

Apu
 
lol, glad you got it sorted

now if only I could get my wireless card to co-operate :p
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back