LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 05-10-2006, 08:17 AM   #1
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Rep: Reputation: 0
ping via WLAN and Access Point


My setup looks like this:


internet
|
|
DSL Modem 192.168.178.1
|
|
| DHCP 192.168.178.20 - 192.168.178.200
|
|
switch ----- PC with LAN card and Windows
|
|
|
access point 192.168.178.50 - fixed ip address
|
| DHCP - 192.168.178.201 - 192.168.178.250


PC with WLAN card and Linux SuSE 9.2


Access Point D-Link DWL-2000AP+
WLAN D-Link DWL-G520+

linux:/etc # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.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.178.1 0.0.0.0

Everything works fine! (almost)
From both the Windows PC and the Linux PC I can browse in internet and up and download - no problems.

However from my Linux PC I cannot ping my access point and I cannot ping any addresses in internet.
For example:

linux:/etc # ping -c3 192.168.178.1
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

MY QUESTION:

Can anyone tell me what I might try in order to ping via the WLAN card and access point??????


Thank you,

Larry
 
Old 05-10-2006, 04:52 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
There might be a confusion based on the acess point IP on the lan side is using that same class C address range as the one the wan side of the access point. You can make the change like this.

internet
|
|
DSL Modem 192.168.178.1
|
|
| DHCP 192.168.178.20 - 192.168.178.200
|
|
switch ----- PC with LAN card and Windows
|
|
|
access point 192.168.178.50 - fixed ip address (wan)
|
| DHCP - 192.168.179.201 - 192.168.179.250 (lan)


PC with WLAN card and Linux SuSE 9.2


Brian1
 
Old 05-13-2006, 04:01 AM   #3
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you very much Brian!

I Think you have put your finger on the problem. Unfortunately my access point does not allow me to implement your suggestion. However based on your suggestion there are other things I can try.

Again thank you very much for your reply. It was very much appreciated!

Larry
 
Old 05-13-2006, 08:21 AM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
What does the access point not allow you to do?

Brian1
 
Old 05-15-2006, 04:53 AM   #5
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
What does the access point not allow you to do?

Brian1
You suggested that I change the DHCP range from 192.168.178.20 - 192.168.178.250

to

192.168.179.201 - 192.168.179.250

whereby the input ip address is 192.168.178.50 (fixed).

The access point does not allow me to change the client DHCP address to be outside the class of the input address.

In the meantime I have tried some of the other possibilities. For example I have set the access point to be a DHCP client itself. This means that the WLAN card in my Linux PC gets its ip address from the DSL modem direct which ifconfig shows (e.g. 192.168.178.26). And browsing in internet still works fine. However I still cannot ping my DSL modem nor can I ping any addresses in internet. Could it be that my access point accepts TCP but not ICMP protocol?

Thanks,

Larry
 
Old 05-15-2006, 07:28 AM   #6
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Rep: Reputation: 15
Try nmap -sP 192.168.178.* will reveal all hosts up at your network.
Also show us.

There may be a possibility that icmp packets are being dropped.
Try wget yahoo.com and give us a feedback.
 
Old 05-15-2006, 03:30 PM   #7
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
What is the modem brand and model?
As I see your flow structure you have it running with DHCP server. Does it support this?
Also is it a switch firewall as well?
Now all the machines plugged into the switch here work fine?

Then you go from a switch which you have an access point plugged in.
Does this access point have a wan side and a lan side?
Brand and model of access point?
Does the access point have a lan ethernet cable connections?
If a machine is plugged into it do they work fine?

Just wondering if the wlan side is misconfigured, some kind of filtering enabled, or some firewall issue.
What is the wlan card you are using and the module for it?

Brian1
 
Old 05-16-2006, 04:03 AM   #8
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Titanas25
Try nmap -sP 192.168.178.* will reveal all hosts up at your network.
Also show us.

prof@linux:~> nmap -sP 192.168.178.*

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2006-05-16 10:47 CEST
Host fritz.box (192.168.178.1) appears to be up. <== DSL modem
Host linux (192.168.178.26) appears to be up. <== WLAN ip address on Linux maching
Host 192.168.178.27 appears to be up.
Host fritz.box (192.168.178.254) appears to be up.
Nmap run completed -- 256 IP addresses (4 hosts up) scanned in 2.910 seconds
prof@linux:~>


There may be a possibility that icmp packets are being dropped.
Try wget yahoo.com and give us a feedback.

linux:/home/prof # wget yahoo.com
--10:55:37-- http://yahoo.com/
=> `index.html.2'
Resolving yahoo.com... 216.109.112.135, 66.94.234.13
Connecting to yahoo.com|216.109.112.135|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.yahoo.com/ [following]
--10:55:38-- http://www.yahoo.com/
=> `index.html.2'
Resolving www.yahoo.com... failed: Name or service not known.
linux:/home/prof #

and with WWW.YAHOO.COM

linux:/home/prof # wget www.yahoo.com
--10:50:48-- http://www.yahoo.com/
=> `index.html'
Resolving www.yahoo.com... 68.142.226.54, 68.142.226.56, 68.142.226.48, ...
Connecting to www.yahoo.com|68.142.226.54|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 34,240 45.00K/s

10:51:05 (44.84 KB/s) - `index.html' saved [34,240]

linux:/home/prof #
 
Old 05-16-2006, 05:24 AM   #9
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
What is the modem brand and model?
As I see your flow structure you have it running with DHCP server. Does it support this?
Also is it a switch firewall as well?
Now all the machines plugged into the switch here work fine?

Then you go from a switch which you have an access point plugged in.
Does this access point have a wan side and a lan side?
Brand and model of access point?
Does the access point have a lan ethernet cable connections?
If a machine is plugged into it do they work fine?

Just wondering if the wlan side is misconfigured, some kind of filtering enabled, or some firewall issue.
What is the wlan card you are using and the module for it?

Brian1
What is the modem brand and model?

FRITZ!Box, no model number. See www.avm.de/FRITZBox (everything in German)

As I see your flow structure you have it running with DHCP server. Does it support this?

Yes, the DSL modem has, if selected, a DHCP output whose range I have set to 192.168.178.20 - 192.168.178.200


Also is it a switch firewall as well?

No it is not nor does it contain internally a switch. It has only two sockets - an input socket and a output socket.
Yes, according to the accompanying description it does contain a firewall.

Now all the machines plugged into the switch here work fine?

If you are refering to the external switch which is connected to the output of the modem then the answer is yes.
I have only one PC connected to the switch and it works fine i.e. I can browse in internet and up and download
files - no problem.

Then you go from a switch which you have an access point plugged in.
Does this access point have a wan side and a lan side?

The access point has only a lan side. It has only one socket - the input socket. Thus there is no provision
for a lan side.

Brand and model of access point?

Brand: D-Link
Model: DWL-2000AP+
Type: D-Link AirPlus G+

Does the access point have a lan ethernet cable connections?

No, from the next question I assume you mean does the access point also provide a lan output - no.

If a machine is plugged into it do they work fine?

na.

Just wondering if the wlan side is misconfigured, some kind of filtering enabled, or some firewall issue.

The access point provides WAP but that is disabled.

What is the wlan card you are using and the module for it?

Brand: D-Link
Model: DWL-G520+
Type: AirPlus G+ 2.4GHz Wireless PCI Adapter
 
Old 05-16-2006, 04:46 PM   #10
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Ok I see what you have now.
The access point default IP was 192.168.0.50 and you changed to 192.168.178.50 correct?
Left netmask as 255.255.255.0 correct?
Mode is set to access point correct?
Access control is disabled meaning no mac or ip filtering enabled correct?
Now encryption enabled wep, wpa correct?
How do you got the DHCP pool settings on the access point?
What is under the lan settings of the access point?

What module are you using for the wlan card?
I think it can use madwifi. Or are you using ndiswrapper?


To me I think the lan settings and dhcp should be
192.168.179.1
DHCP - 192.168.179.201 - 192.168.179.250 (lan)

But sure since I never configured one of these units.

Lets see from answers we get here. I will give it some more thought.
It is just hard to check wireless since no lan ports exist just to see if routing works fine. Does the machine have another OS installed and will it connect that way?
Or maybe find a friend with a wirless enabled device and see if they can connect and browse. If they can't then I would say it is the access point setup. If they can browse then it is the wlan card setup. Whether driver or misconfiguration.

One more thought what kind of cable is going from the access point to the switch? Standard ethernet or a crossover?
Is the port it is connected support uplink and and an uplink switch for it?
If it does then it may be in the wrong postion.

Brian1
 
Old 05-18-2006, 07:04 AM   #11
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Stop! Before you put any more thought into my problem let me check something - it might take a while. I suspect the problem might be the WLAN card in my Linux PC. I can successfully ping my access point from the Windows PC (via a LAN card). For the Linux PC I had to use a ndiswrapper driver and the people who provide the ndiswrapper warn that not all features are available. What I will do is put the WLAN card in a Windows PC and see if I can ping the access point successfully from there (i.e. without the ndiswrapper driver).

cheers,

Larry
 
Old 05-19-2006, 11:37 AM   #12
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lpoorman
Stop! Before you put any more thought into my problem let me check something - it might take a while. I suspect the problem might be the WLAN card in my Linux PC. I can successfully ping my access point from the Windows PC (via a LAN card). For the Linux PC I had to use a ndiswrapper driver and the people who provide the ndiswrapper warn that not all features are available. What I will do is put the WLAN card in a Windows PC and see if I can ping the access point successfully from there (i.e. without the ndiswrapper driver).

cheers,

Larry

Yes, that is my problem. I installed the same WLAN card in a Windows machine and with it I can ping my access point or an IP address in internet. My next experiment is to see if a later version of SuSE contains a driver for my WLAN card so that I do not have to use the ndiswrapper.

Thanks everyone for all your help!

cheers,

Larry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WUSB11 v2.6 - Able to ping Access point but nothing beyond shepper Slackware 8 03-25-2005 02:25 AM
wirless access point ping test? richiehawtin Linux - Wireless Networking 1 08-26-2004 11:51 PM
Using an Atheros WLAN card as Access Point firebolt Linux - Hardware 0 03-27-2004 02:34 PM
Problem in configuring node as Access-Point (AP) in WLAN bond_7942 Linux - Wireless Networking 1 10-06-2003 10:49 PM
Problem in configuring node as Access-Point (AP) in WLAN bond_7942 Linux - Hardware 0 09-15-2003 08:35 AM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration