Wireless USB Adaptor on Slackware
I'm trying to go fully wireless in my house and get my PC up and running with a USB wireless adaptor (it's a D-Link DWL-G122). I got the driver installed using ndiswrapper, and "ndiswrapper -l" does show me the driver loaded into memory. Next I did:
Code:
The problem I have is I can only see my PC's and the router on my internal network. I can ping these PC's and the router and I can visit my router homepage at 192.168.2.1 in a browser and it works OK. If I try to visit any external sites it says "[sitename] could not be found. Please check the name and try again." If I try and ping the external IP address of my router it says "connect: Network is unreachable" .... it's like it doesn't know the route and it's not using 192.168.2.1 as the gateway? One more thing, I can't shut down my computer either. When I do "shutdown -h now" the screen fills up with this: Quote:
|
I've just had something similar getting wireless going on my laptop under Gentoo. Came down to the default gateway. Rather than:
Code:
route add default gw 192.168.2.1 netmask 255.255.255.0 Code:
route add default gw 192.168.2.1 |
ok ... just tried that and it seems to make no difference.
Any other suggestions? |
Any more suggestions anyone?? I really have no clue what to do next.
|
Since you're using a static IP, you do need to set up your /etc/resolv.conf file to include your ISP's nameservers. My guess is that you could surf by IP address (for example, if you try to go to 64.179.4.149 you would end up here at LQ). So for each nameserver your ISP has, you need to add a line like this:
nameserver xxx.xxx.xxx.xxx and replace the x's with the IP address. |
The problem sounds like the domain name server or gateway. For the gateway, fouldsy's suggestion should work (if you follow that by restarting the network /etc/rc.d/network restart). What does your file /etc/resolv.conf have? You don't want the first entry to be the router address (192.168.2.1)
--Bill |
Quote:
|
Ok, I too am having this problem, but my resolv.conf file appears to be correct, according to what was mentioned above. Here are it's contents,
; generated by /sbin/dhclient-script search Smiths nameserver 192.168.2.1 My wireless connection works fine, but when I shutdown or reboot, that "wrap_reset_port:1040 reset failed -22" error repeats infinitely. I'm using Fedora Core 4, and this is a belkin usb adapter, model F5d7050 with ndiswrapper. I'm new to Linux, but not computing, and I can usually figure these things out. This one, I'm stumped. :confused: |
First off, Welcome to LQ!
I'm afraid that error message (wrap_reset_port:1040 reset failed -22) has me stumped as well. Googling on it only brings up this thread. If this shutdown error is the only problem, I would post it at the ndiswrapper forum and see if one of the developers can help. They are probably going to suggest you use the latest version of ndiswrapper, so make sure you are. If your problem is that you can't surf by name, it could be a couple of things. First off, can you surf by IP address? Also, from your resolv.conf file, it looks as if you are using DHCP to get an IP address for your wireless card. Are you sure that is happening? Check the output of ifconfig to make sure. Finally, while your resolv.conf entry should work, it couldn't hurt to add your ISP DNS servers and see if that makes a difference. |
DoctorWynn: Are you still having this problem? I noticed a difference between your resolv.conf and mine. In mine my nameservers are listed at the top, and "search domain" is listed on the last line at the end. It could be worth trying - little things like this normally make a difference in Linux.
Hangdog42: to get around the "wrap_reset_port:1040 reset failed -22" problem I just kill the ndiswrapper process as part of the system shutdown ... perhaps not the most graceful approach but it does get around the problem. |
Quote:
|
All times are GMT -5. The time now is 09:14 PM. |