PDA

View Full Version : [ubuntu] Connected But Not Working



gecus
March 13th, 2009, 04:08 AM
I have been trying to make my SWL-3200u Wireless USB Adapter work in ubuntu for the past two days. Here is the current state of my progress:


The LINK light on the adapter is the right color
The connectivity is 100% on my Wireless connection to the router (2WIRE207)

But when I goto Firefox and then try to load google, I get a Page Not Found. I looked at my Connection Information and for everything I have 0.0.0.0 (I am DHCP enabled). It is not hte WEP key for I have quadruple checked the key and its settings, I have even disabled it once and still no dice. Can anyone offer any advice

Crafty Kisses
March 13th, 2009, 04:18 AM
Hey there gecus! When you ping a website do you get any replies? You can ping a website by doing the following:

ping website name
You should also try seeing what your resolv.conf says, run the following:

cat /etc/resolv.conf
See if the nameservers are listed. I'd also suggest try doing a DNS lookup just to see if that's working as well, you can run the following:

host website name
Once you have ran these tests, post back and let me know what the results were.

gecus
March 13th, 2009, 04:37 AM
Hey there gecus! When you ping a website do you get any replies? You can ping a website by doing the following:

ping website name
You should also try seeing what your resolv.conf says, run the following:

cat /etc/resolv.conf
See if the nameservers are listed. I'd also suggest try doing a DNS lookup just to see if that's working as well, you can run the following:

host website name
Once you have ran these tests, post back and let me know what the results were.


http://i646.photobucket.com/albums/uu188/gecus/Screenshot.png



john@john-desktop:~$ ping www.yahoo.com
ping: unknown host www.yahoo.com



john@john-desktop:~$ host www.yahoo.com
;; connection timed out; no servers could be reached

resolv.conf picture in link

Crafty Kisses
March 13th, 2009, 04:42 AM
See if you can access Google by going into Firefox or whatever web browser you may use, and in the address bar type the following:

http://74.125.67.100

gecus
March 13th, 2009, 05:20 AM
See if you can access Google by going into Firefox or whatever web browser you may use, and in the address bar type the following:

http://74.125.67.100

No luck :[

Crafty Kisses
March 13th, 2009, 05:52 AM
What are the results of the following command?

route

gecus
March 13th, 2009, 01:19 PM
What are the results of the following command?

route


john@john-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
john@john-desktop:~$

One thing I noticed, even after it connects, it keeps asking for a WEP key.

JerryI
March 13th, 2009, 03:23 PM
I have a similar problem. I am installing Hardy on a dual boot laptop with XP and cannot connnect to my 2wire router. I see my network 2wire411 but cannot successfully enter my wep key 0360663701. The key works with other computers on Intrepid and XP and Vista. My responses to your suggested commands are:

cannot ping a website - response is ping: unknown host www.nytimes.com

cat /etc/resolv.conf: no such file or directory

host google.com - response ;; connection timed out; no servers could be reached

route - response Destination Gateway Genmask Flags Metric Ref Use Iface

---------------------------------------------
Not knowing anything about this, but experimenting with some stuff on

http://theos.in/desktop-linux/resolve-conf-linux-example/

Since apparently /etc/resolv/conf did not exist, I created and saved /etc/resolv.conf with the following info:

search cyberciti.biz
nameserver 202.54.1.10
nameserver 202.54.1.11

Then I got the following results

gai@ubuntu:~$ sudo cat /etc/resolv.conf
# Generated by NetworkManager
domain gateway.2wire.net
search gateway.2wire.net
nameserver 192.168.1.254
gai@ubuntu:~$

As mentioned above, the network appears in my 'Enter wep key' window as 2wire411

Crafty Kisses
March 13th, 2009, 11:16 PM
john@john-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
john@john-desktop:~$

One thing I noticed, even after it connects, it keeps asking for a WEP key.

Well your routing table is empty which is a bit weird, try running the following command:

route add default gw 192.168.1.1 netmask 255.255.255.0
Assuming your default gateway is 192.168.1.1, in some cases it's 192.168.2.1, and your netmask is 255.255.255.0. Then try to ping another website.

gecus
March 14th, 2009, 12:48 AM
Well your routing table is empty which is a bit weird, try running the following command:

route add default gw 192.168.1.1 netmask 255.255.255.0
Assuming your default gateway is 192.168.1.1, in some cases it's 192.168.2.1, and your netmask is 255.255.255.0. Then try to ping another website.


john@john-desktop:~$ sudo route add default gw 192.168.1.1 netmask 255.255.255.0
[sudo] password for john:
SIOCADDRT: No such process
john@john-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
john@john-desktop:~$ route add default gw 192.168.1.1 netmask 255.255.255.0
SIOCADDRT: Operation not permitted
john@john-desktop:~$ sudo route add
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
john@john-desktop:~$ sudo route add gw 192.168.1.1 netmask 255.255.255.0
gw: Unknown host
john@john-desktop:~$ sudo route add default gw 192.168.1.1
SIOCADDRT: No such process
john@john-desktop:~$ sudo route add gw 192.168.1.1
gw: Unknown host
john@john-desktop:~$ sudo route add gw 192.168.2.1
gw: Unknown host
john@john-desktop:~$ sudo route add gw 192.168.1.2
gw: Unknown host
john@john-desktop:~$


I also don't know if this could be of assistance, the PC my router is hooked to is running Windows and this is my result from the

ipconfig /all
command:


Windows IP Configuration

Host Name . . . . . . . . . . :DADS
Primary DNS Suffix . . . . . .:
Node Type . . . . . . . . . . :Broadcast
IP Routing Enabled . . . . . .:No
WINA Proxy Enabled . . . . . .:No
DNS Suffix Search List . . . .:gateway.2wire.net

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix:gateway.2wire.net
Description . . . . . . . . . :Realtek RTL8139/810x Family Fast Eth...
Ethernet NIC
Physical Address . . . . . . .: XX-XX-XX-XX-XX-XX (censored for net purposes)
Dhcp Enabled . . . . . . . . .:Yes
Autoconfiguration Enable . . .:Yes
IP Address . . . . . . . . . .:192.168.1.254
Subnet Mask . . . . . . . . . :255.255.255.0
Default Gateway . . . . . . . :192.168.1.254
DHCP Server . . . . . . . . . :192.168.1.254
Lease Obtained . . . . . . . .:Friday, March 13, 2009 3:07:50 PM
Lease Expires . . . . . . . . :Saturday, March 14, 2009 3:07:50 PM
Sorry for the weird formatting and possible typos, this keyboard sucks worse than the ones at school. :\

1ll3xc
March 14th, 2009, 01:00 AM
This might be a longshot but the type of networking adapter you are having has some issues related to Wake-On-LAN. Here is a source for supposedly solving that issue (I have not yet succeeded on an old laptop with the same adapter):

http://bozziesfw.wordpress.com/2007/08/14/netdev-watchdog-timed-out-realtek-8139/

Best regards,
Thomas

peppino
March 14th, 2009, 01:18 AM
Try sudo route add default gw 192.168.1.254 netmask 255.255.255.0

post /etc/netwok/interfaces

ping 192.168.1.254 ;)

gecus
March 14th, 2009, 01:47 AM
Try sudo route add default gw 192.168.1.254 netmask 255.255.255.0

post /etc/netwok/interfaces

ping 192.168.1.254 ;)


gw: Unknown host
john@john-desktop:~$ sudo route add default gw 192.168.1.254 netmaskk 255.255.255.0
[sudo] password for john:
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
john@john-desktop:~$ sudo route add default gw 192.168.1.254 netmask 255.255.255.0
SIOCADDRT: No such process
john@john-desktop:~$ sudo add gw 192.168.1.254 netmask 255.255.255.0
sudo: add: command not found
john@john-desktop:~$ sudo route add gw 192.168.1.254 netmask 255.255.255.0
gw: Unknown host
john@john-desktop:~$ sudo route add 192.168.1.254
SIOCADDRT: No such device
john@john-desktop:~$ sudo route add Gw 192.168.1.254
Gw: Unknown host
john@john-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
john@john-desktop:~$



john@john-desktop:~$ ping 192.168.1.254
connect: Network is unreachable
john@john-desktop:~$



auto lo
iface lo inet loopback

Crafty Kisses
March 14th, 2009, 02:46 AM
What are the results of the following command?

dhclient wlan0
I'd also suggest checking your firewall settings and see if wlan0 is an actual internet device.

rossnewbs16
March 14th, 2009, 02:50 AM
I tried doing these codes too, this is what I got:

http://rossmanguy.com/wp-content/files/internetprob.png

I'm guessing I'm connected to the internet, i just can't pull it up in a browser.
Any advice?

gecus
March 14th, 2009, 02:57 AM
What are the results of the following command?

dhclient wlan0
I'd also suggest checking your firewall settings and see if wlan0 is an actual internet device.


john@john-desktop:~$ sudo dhclient wlan0
[sudo] password for john:
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/00:02:78:e8:07:d9
Sending on LPF/wlan0/00:02:78:e8:07:d9
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
john@john-desktop:~$

And as far as I could see there was nothing in my firewall about wlan0, unless you meant some firewall in ubuntu... I might just be retarded :\ I'm a software guy not a network guy so this stuff isn't as much my speed, sorry if I'm being incompetent.

Crafty Kisses
March 14th, 2009, 04:05 AM
I'm guessing this is being caused by two issues, and obvious ones at that:

Network configuring issue.
Driver issue with your wireless adapter.

So here's what I want you to do, post the results of these commands:

ifconfig
iwconfig
That will tell me what kind of wireless card you have, and your basic setup. I guess the last thing I want to try with me approaching the Network configuration problem, is see if you can access your router, usually you can do this by opening a web browser of your choice like Firefox and putting this in the navigation bar:

192.168.1.1
In some cases it's 192.168.2.1. Then check all your settings and make sure they are correct. If that doesn't work I'm going to see if it's a driver issue.

gecus
March 14th, 2009, 04:56 AM
I'm guessing this is being caused by two issues, and obvious ones at that:

Network configuring issue.
Driver issue with your wireless adapter.

So here's what I want you to do, post the results of these commands:

ifconfig
iwconfig
That will tell me what kind of wireless card you have, and your basic setup. I guess the last thing I want to try with me approaching the Network configuration problem, is see if you can access your router, usually you can do this by opening a web browser of your choice like Firefox and putting this in the navigation bar:

192.168.1.1
In some cases it's 192.168.2.1. Then check all your settings and make sure they are correct. If that doesn't work I'm going to see if it's a driver issue.


john@john-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:47:29:53:92
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)

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:2300 errors:0 dropped:0 overruns:0 frame:0
TX packets:2300 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:122504 (119.6 KB) TX bytes:122504 (119.6 KB)

wlan0 Link encap:Ethernet HWaddr 00:02:78:e8:07:d9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:234 errors:0 dropped:10 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:44439 (43.3 KB)

wlan0:avahi Link encap:Ethernet HWaddr 00:02:78:e8:07:d9
inet addr:169.254.8.4 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1

john@john-desktop:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11b ESSID:off/any
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:11 Mb/s Tx-Power:0 dBm Sensitivity=0/3
RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0







Wireless Adapter Hardware:

Bus 002 Device 003: ID 055d:b230 Samsung Electro-Mechanics Co.
IEEE 802.11b DSSS High Speed standard
USB Spec 11 Complaint
Mode : SWL-2300U
FCC ID : E2XSWL - 2300U
Made in Korea

Router Hardware:

2WIRE 2701HG-B
(RG2701HG-00)

I accessed the router settings via typing "home" in the URL bar of my browser (odd enough, I know)

Firewall Settings:
Security-
[x]Stealth Mode
[x]Block Ping
[ ]Strict UDP Session Control

Inbound and Outbound Control-
Outbound-
[x]HTTP
[x]HTTPS
[x]FTP
[x]Telnet
[x]SMTP
[x]DNS
[ ]NetBIOS
[x]POP3
[x]IMAP
[x]NNTP
[x]IRC
[x]H323
[x]All Other Protocols

Inbound-
[x]Remote Management
[ ]NetBIOS

Attack Detection:
[x]Excessive Session Detection
[x]TCP/UDP Port Scan
[x]Invalid Source/Destination IP address
[x]Packet Flood (SYN/UDP/ICMP/Other)
[x]Invalid TCP Flag Attacks (NULL/XMAS/Other)
[x]Invalid ICMP Detection
[x]Miscellaneous


Wireless Settings:

Identify Network:
Network Name: 2WIRE207
Wireless Channel 6 (2437 MHz)
[x]Enable SSID Broadcast

Wireless Security:

[x]Enable Wireless Network Security
Authentication: WEP-Open
(o)Use default encryption key
( )Use custom pass phrase

Additional Settings (defaults recommended):
Wireless Mode: 802.11b/g
DTIM Period (seconds): 1
Maximum Connection Rate: 54 Mbps
Power Setting: 10


Private Network:
(o)192.168.1.0/255.255.255.0
( )172.16.0.0/255.255.0.0
( )10.0.0.0/255.255.0.0
( )Configure manually
Router Address:
Subnet Mask:
[ ]Enable DHCP
First DHCP Address:
Last DHCP Address:
(o)Default DHCP Pool

Set DHCP Lease Time:24 hours

Public Proxied Subnet (NAT/Routed):
[ ]Enable
Broadband Network: 65.1.95.221/255.255.255.252
Subnet Mask:
[ ]Auto Firewall Open
( )Default DHCP Tool

Display Settings:
[x]Show inactive devices in network list

Private Network:
Router Address: 192.168.1.254
Subnet Mask: 255.255.255.0
DHCP Range: 192.168.1.64-192.168.1.253
Allocated 11
Avaliable 179

Upstairs the wireless adapter talks with the router downstairs on the family computer which I'm on at the moment, this computer connects to router for its web access, router goes to phone connector in the wall (with proper DSL filters). We have AT&T Internet.

EDIT: Sorry for the slow response, the settings took forever to manually type.

Crafty Kisses
March 14th, 2009, 06:16 AM
Hey there again gecus! Upon some research on the "SWL-2300U" card, it looks a little bit hard to get up and running, and I have my doubts that it will even run at all, but supposedly people have got it up and running on Ubuntu, so here's what I'm going to do, I'm going to give you a link for this card, and see if the instructions in that thread work, supposedly this card isn't really that common in US, but very common in Korea. So here, read this link: http://ubuntuforums.org/showthread.php?t=334478&page=1.

gecus
March 14th, 2009, 06:48 AM
Hey there again gecus! Upon some research on the "SWL-2300U" card, it looks a little bit hard to get up and running, and I have my doubts that it will even run at all, but supposedly people have got it up and running on Ubuntu, so here's what I'm going to do, I'm going to give you a link for this card, and see if the instructions in that thread work, supposedly this card isn't really that common in US, but very common in Korea. So here, read this link: http://ubuntuforums.org/showthread.php?t=334478&page=1.

So you think it is the adapter? In that case I may be able to buy a different (hopefully Linux compatible) network adapter, this one only runs at 11 Mbps after all :\

I'm still unsure as to go with a PCI card or a USB device, hopefully they have some out-of-box Linux adapters, though it is doubtful :[ All-in-all though, I blame Korea, I suppose mainly because I get my tail end handed to me on a silver platter in StarCraft when I play a Korean *jealousy*.

So, I will look at good cards tonight in preparation for my visit to Wal-Mart tomorrow (I know, I know, bad place to buy electronics, or anything for that matter. But I'm in the middle of LOUISIANA, there are no other stores O.O) as my mom will also be buying me a mouse :D (giving her my Wacom Graphics tablet) (I don't know why I am obsessed with parenthesis or superfluous information)

Regardless, I shall now stop my incessant rambling and thank you for your time :D
While you are reading this, any adapter that you might could recommend?

Crafty Kisses
March 14th, 2009, 06:53 AM
Here's a list of supported wireless cards that work on Linux: https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported. I hate to say just buy a new one, but I for one don't know much about the card, but supposedly it's possible to get it up and running, just takes some work. If you're going to get a new wireless card, go with Linksys, those usually work great and are easy on the wallet. :)

gecus
March 14th, 2009, 07:08 AM
Here's a list of supported wireless cards that work on Linux: https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported. I hate to say just buy a new one, but I for one don't know much about the card, but supposedly it's possible to get it up and running, just takes some work. If you're going to get a new wireless card, go with Linksys, those usually work great and are easy on the wallet. :)

Its alright, and thanks again mate, it was screwing up in Windows too ever since we got our new router box. Plus it is like 3 years old so its about time ;)

Crafty Kisses
March 14th, 2009, 07:08 AM
Haha! I'm glad I could kind of help you. :)

aaronhahn777
March 17th, 2009, 10:57 PM
I had the same problem and it turned out to be a faulty router. It only took me like 20 hrs to even think that that could be the problem... dang.