LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-11-2005, 12:35 PM   #1
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Rep: Reputation: 15
wifi wep... almost done


Hi all,

I've installed ndiswrapper and a us robotics 5410 pcmcia card, following a couple of tutorials and everything works correctly but (yeap, there's always a but hehe) I can't connect to the internet.

I can associate correctly to the AP, do DHCP to receive an ip address but after that I try to ping to the gateway and:

ping: sndmsg: Operation not permitted

I'm using debian sarge 2.6.8-1-686

any clues?

thanks a lot!!

Last edited by kermit; 03-11-2005 at 12:38 PM.
 
Old 03-11-2005, 01:31 PM   #2
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
ping: sndmsg: Operation not permitted

This isnt right. Are you just running:

ping 192.168.2.1

or something like that from the shell? If you are then you might need to be su but I cant for the life of me understand why. Maybe DOS attack prevention or something.
 
Old 03-11-2005, 01:57 PM   #3
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Yeap snecklifter I'm doing that ping from shell, but it's still the same with root user.

thanks!!
 
Old 03-11-2005, 04:17 PM   #4
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
Just out of interest, can you run a traceroute to any destination ip? This also uses ICMP - it would be good to know at which OSI layer this is happening. Does
ping 127.0.0.1
work?
If so, then try pinging you own computer's IP like 192.168.2.2 or whatever.
Let me know the results.
Cheers
Chris
 
Old 03-13-2005, 06:25 AM   #5
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks a lot snecklifter!!

Both pings that you suggest work fine (127.0.0.1 and 192.168.123.106)

that tells you anything?
 
Old 03-13-2005, 05:08 PM   #6
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
Certainly. This means that your network stack isnt screwed. Just a configuration problem. What is the router's ip? It should be something like 192.168.123.1? Can you also post back your netmask and gateway settings as well as your dns ip address or hostname. Its going to be one of these.
Regards
Chris
 
Old 03-14-2005, 02:00 PM   #7
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks man you're my salvation! You have an invitation to some spanish beers and drinks in Madrid whenever you want!

The netmask 255.255.255.0 and the router is 192.168.123.254. The DNS are handled also by the router, so it would be that same ip.
 
Old 03-14-2005, 02:31 PM   #8
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
Woah, we aint there yet! Thanks for the invite though.

Unfortunately it all looks fine from the info you've post back. So I need a bit more. Can you post back the output from
Code:
route -n
However its about time to try something. Can you change the IP address of the router to 192.168.123.1? Then try re-associating with it using dhclient. There's nothing really wrong with placing a router at the end of the ip range but by default they are placed at the beginning and if there is anything playing funny buggers that doing this will eliminate that concern.

Regards
Chris
 
Old 03-14-2005, 03:36 PM   #9
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Yeap we are not there yet but your time wasted thinking/writing deserves that drinks!!

I changed the router to 192.168.123.1 but it's still the same. The routing table was:

dest 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.123.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.123.1 0.0.0.0 UG 0 0 0 wlan0

After that I disabled eth0 (even though the cable is unplugged) and get:

dest gateway genmask flags metric ref use iface
192.168.123.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.123.1 0.0.0.0 UG 0 0 0 wlan0

but still the same:

#ping 192.168.123.1
PING 192.168.123.1 (192.168.123.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
....

Notice that the connection to the AP looks like it's ok: The router and the AP are different devices, and the dhclient wlan0 works fine. I changed the password to try and could not get a valid DHCP ip address.
 
Old 03-14-2005, 04:08 PM   #10
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
So you set the WEP key before you get the IP address - I guess you must do or the router would say "no dice". Therefore it must be a problem on the router end. From what you've posted I cant see a problem with your configuration. This is mine:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1

therefore I'm assuming its an incorrect association with the router or some MAC address filtering or something happening. Is there anything odd in the router setup page?
 
Old 03-14-2005, 04:20 PM   #11
kermit
Member
 
Registered: Jul 2002
Location: Madrid. Spain
Distribution: considering ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
No, in fact I went through it when changing the ip and everything was quite clear.

I don't think it has to do with the AP, when trying in windows it works smoothly

Both the network card and the router are US Robotics, and the AP is Ovislink, can it be something about incompatibility between the brands?

Thanks a lot again!
 
Old 03-15-2005, 04:52 AM   #12
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
kermit,

Do you have any firewall running on debian at the moment? If so, try temporarily disabling it. This might be the cause of your problems.
Regards
Chris
 
Old 03-15-2005, 06:39 AM   #13
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
Quote:
Originally posted by kermit

I changed the router to 192.168.123.1 but it's still the same. The routing table was:
After that I disabled eth0 (even though the cable is unplugged) and get:

dest gateway genmask flags metric ref use iface
192.168.123.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.123.1 0.0.0.0 UG 0 0 0 wlan0

Notice that the connection to the AP looks like it's ok: The router and the AP are different devices, and the dhclient wlan0 works fine. I changed the password to try and could not get a valid DHCP ip address.
What do you get back when you run iwconfig?

Also, you might add the AP IP into your route table as a host entry:

route add 192.168.123.1 wlan0

and then

route add default gw 192.168.123.1

This last command may give you an error about that route already existing, that's okay.
Then give your ping command another try, but use traceroute

traceroute 192.168.123.1

If you run dhcpcd wlan0, this should be automatically set up. When you say you changed the password and now cannot get DHCP address are you connected?

Last edited by n0xvb; 03-15-2005 at 06:42 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
WiFi dhcp ip essid wep advice otchie1 Linux - Wireless Networking 3 12-15-2006 12:32 PM
WindowsXP, Wifi, WEP, and Samba: connectivity problems pembo13 Linux - Wireless Networking 1 05-26-2005 10:07 AM
Planet PCMCIA WiFi card can't change WEP key set shneoh Linux - Wireless Networking 2 07-03-2004 12:04 PM
How to enable 40 bit WEP instead of 128 bit WEP tweedledee Linux - Wireless Networking 1 01-01-2004 10:33 AM
Linux/Debian, WEP and linux-wlan - cannot get it to work with WEP slewis1972 Linux - Wireless Networking 1 12-25-2003 04:48 PM


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

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 Google+: linuxquestions
Open Source Consulting | Domain Registration