LinuxQuestions.org
Help answer threads with 0 replies.
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 02-10-2009, 11:12 AM   #1
vivekjoshi
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
Post Wireless status connected, cannot ping router.


Hi All,
Thanks for reading this.
I have an adsl router (Huawei). I have connected to the router through wifi but I still cant ping it. In kWifi manager, it shows me as connected, and also in the router, I can see my mac address as connected. But still cant ping.

I am using Slackware 12.0
root@vlaptop:~# uname -an
Linux vlaptop 2.6.21.5-smp #2 SMP Tue Jun 19 14:58:11 CDT 2007 i686 AMD Turion(tm) 64 X2 AuthenticAMD GNU/Linux


The output of ifconfig and route is as under:
root@vlaptop:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:163:A5:F8:7F
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:d3ff:fea5:f87f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15681 errors:0 dropped:0 overruns:0 frame:0
TX packets:13680 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12335138 (11.7 MiB) TX bytes:1888984 (1.8 MiB)
Interrupt:20 Base address:0xa000

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:260 errors:0 dropped:0 overruns:0 frame:0
TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22191 (21.6 KiB) TX bytes:22191 (21.6 KiB)

wlan0 Link encap:Ethernet HWaddr 00:1A:73:03:F2:FD
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:73ff:fe03:f2fd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:842 errors:0 dropped:0 overruns:0 frame:0
TX packets:2937 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:759267 (741.4 KiB) TX bytes:471434 (460.3 KiB)
Interrupt:22 Memory:b3000000-b3004000

root@vlaptop:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0


But I cant ping my router. Please give me some suggestions.

Thanks for reading this post.

Regards,
Vivek.
 
Old 02-10-2009, 11:39 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
just a thought
ping is blocked at the router by the firewall?
 
Old 02-10-2009, 06:26 PM   #3
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
If you have your wired LAN connection and wireless connection to the same router, you will have problems. I don't know if this is the ONLY problem, but you need to disable the wired connection if you want the wireless to work correctly.

It appears you have both connected to the same router, or at least the same subnet and that generally is a problem.
 
Old 02-27-2009, 09:19 AM   #4
vivekjoshi
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Hi Pentode, Repo,
Thanks a lot for your super quick replies. Unfortunately, I was out of town for an emergency and I could not do anything further. I returned, and checked the router again, no firewall problems.

I changed the IP for the wifi. It would connect only in peer to peer mode, but no ping to an external IP would work.

With the same ip subnet, I checked and the default gateway used the lan port. Hence, I was not able to ping the router using wifi. I did a eth0 down, then add the default route back.

And it worked!

Thanks a lot both of you for your suggestions. Unless you did that, I perhaps would not have been able to solve the problem.

Thanks a lot again.

With warm regards,
Vivek.
 
  


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
Wifi connected to router, ping to router ok, no webaccess. what is wrong? deepcore Linux - Wireless Networking 5 01-07-2008 01:59 AM
can't ping router by wireless buccaneere Linux - Wireless Networking 1 11-05-2007 06:54 AM
a/p connected, route correct, ping router: "Destination Host Unreachable". DebianEtch shinyblue Linux - Wireless Networking 1 08-29-2006 09:34 PM
Can ping wireless router, but not get online toby_A Linux - Wireless Networking 5 01-01-2005 07:56 AM
i can ping wireless router, but.. santasballz Linux - Wireless Networking 2 02-15-2004 09:33 PM

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

All times are GMT -5. The time now is 03:40 AM.

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