LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-14-2006, 12:38 PM   #1
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
Can ping servers but not connect (WLAN)


Hi

I find myself unable to connect to internet through my new wireless card. I am able to get onto the local network, and I am able to ping all the servers I have tried - but I am unable to get any activity in any browser or mailprograms.

Can someone please tell me what I have overlooked or explain what I am doing wrong. I have read dozens of similar problems, but nothing seems to help.

Do note that my wireless modem is named "ra0". I use WEP-encryption, but get the same results without. My xDSL-modem router-function is turned off, and my wireless-router is 192.168.2.1.


--

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ra0
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 ra0

--
#ifconfig
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:69 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6944 (6.7 KiB) TX bytes:6944 (6.7 KiB)

ra0 Link encap:Ethernet HWaddr 00:08:A1:9B9:01
inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::208:a1ff:fe9b:d901/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4081 errors:0 dropped:0 overruns:0 frame:0
TX packets:556 errors:0 dropped:0 overruns:0 carrier:0
collisions:9 txqueuelen:1000
RX bytes:546376 (533.5 KiB) TX bytes:3037 (2.9 KiB)
Interrupt:12
--

# more /etc/resolv.conf
search localhost
nameserver 192.168.2.1
--

# ping google.com
PING google.com (216.239.59.99) 56(84) bytes of data.
64 bytes from 216.239.59.99: icmp_seq=0 ttl=240 time=62.3 ms
64 bytes from 216.239.59.99: icmp_seq=1 ttl=240 time=61.9 ms
64 bytes from 216.239.59.99: icmp_seq=2 ttl=240 time=64.1 ms
64 bytes from 216.239.59.99: icmp_seq=3 ttl=240 time=61.5 ms
64 bytes from 216.239.59.99: icmp_seq=4 ttl=240 time=61.4 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 61.441/62.283/64.121/0.973 ms, pipe 2
 
Old 08-14-2006, 02:03 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
The obvious thing I see is the /etc/resolv.conf file.

Quote:
# more /etc/resolv.conf
search localhost
nameserver 192.168.2.1
You have the IP address of your gateway here. It should be the IP addresses your ISP provides for DNS.

If you know what they are just edit the file as root and enter them. If you don't know what they are, contact your ISP and ask, or if you have another working machine, look there for them.
 
Old 08-14-2006, 03:10 PM   #3
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanks - but that did not solve my problem.

I can ping the DNS nameserver (130.67.60.68) but not log onto port 53 (as I read somewhere I should try).

I am quite new to linux networking, so this may be caused by a simple mistake somewhere... but I need help finding out where.
 
Old 08-14-2006, 03:21 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Did you edit the resolv.conf file and enter 130.67.60.68 and try it? Having the IP address of your gateway won't get names resolved.
 
Old 08-14-2006, 04:03 PM   #5
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
...I'm looking that new to linux?

Yes I did - but it seems like some GUI-tool reset the file, or is it the dhclient-script that create my problems?

I will try again and see, and your advice is really appriciated.
 
Old 08-14-2006, 04:29 PM   #6
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
...and it's getting late over here, and I am still stuck.

I guess my configuration may not be quite OK, so if anyone cares to look at it:


DEVICE=ra0
ONBOOT=yes
HWADDR=
BOOTPROTO=none
NETMASK=
DHCP_HOSTNAME=
IPADDR=192.168.102
DOMAIN=
USERCTL=yes
PEERDNS=yes
GATEWAY=192.168.2.1
TYPE=Wireless
IPV6INIT=no
ESSID=nr3
CHANNEL=1
MODE=Auto
RATE=Auto
 
Old 08-14-2006, 08:52 PM   #7
philix
Member
 
Registered: Sep 2005
Location: India
Distribution: Redhat Debian
Posts: 36

Rep: Reputation: 15
Hi,

May be some firewall may be blocking it.
Try 'iptables -L" to find out whether the iptables rules are active and if yes
Try 'iptables -F' to flush out the rules

Jesus loves you
Regards and Good Luck
Philix
 
Old 08-15-2006, 10:02 AM   #8
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
iptables -L tells (policy ACCEPT) everywhere, allthough there are nothing listed as target, prot, opt source or destination anywhere.

I use fedora core 3 and I am not perfectly sure I have the right driver for my wireless network-card. Could that be the case, that the driver is inncorect?

(CNET CWP-854 card - RT61_Linux_STA_Drv1.0.4.0 driver)

By the way, I do not initialize this card or its setup at startup, but run a script manually. Would that matter?
 
Old 09-16-2006, 04:20 AM   #9
philix
Member
 
Registered: Sep 2005
Location: India
Distribution: Redhat Debian
Posts: 36

Rep: Reputation: 15
Hi,

Can you please try the telnet <google.com> 80 ?
Try the tcpdump command to find out the packets moving in and out through port 80

Good Luck
Philix
God Loves you
 
Old 09-16-2006, 07:11 PM   #10
eine
LQ Newbie
 
Registered: Sep 2006
Location: West Java,indonesia
Distribution: Suse 10.0
Posts: 11

Rep: Reputation: 0
hi,i'm new to this forum, but i have the same problems last night here. i plugged my ethernet cable and configure but then i can't connect to the internet.

The name server ( DNS ) was right ( check it in /etc/resolv.conf ) , my IP , gateway, etc was right but i still cannot connect thought i could ping google. For almost 1 hour i tried to reconfigure my networking, then i read something. It was said that the firefox could not locate any proxy at all, so i tried to go to YaST ( i used SuSE linux 10.0 ) and try change the proxy setting so that the proxy automatically detect proxy configuration instead connect to the internet directly.

i don't know if it's work for you, but it works on my lappy.

thanks -- cmiiw
 
Old 09-17-2006, 07:32 AM   #11
markusw
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thankyou for your advices. I however gave up and installed fedora core 5, and my problem has not reoccured.

So, I have "solved" my problem, allthough that solution was really what I tried to avoid.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ping via WLAN and Access Point lpoorman Linux - Wireless Networking 11 05-19-2006 11:37 AM
wlan problem - iwconfig looks good but can't ping koknat Linux - Wireless Networking 13 03-01-2005 07:16 PM
xmule:can't connect to servers? spchehe Linux - Software 1 08-17-2004 11:34 PM
Xchat can't connect me to servers!? iZvi Linux - Software 0 06-12-2004 06:17 AM
WLAN with HostAP no Ping!? Tafkaj Linux - Wireless Networking 5 05-21-2003 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration