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 01-17-2006, 08:39 PM   #1
dauphinfay
Member
 
Registered: Jan 2004
Location: Earth
Distribution: Ubuntu
Posts: 301

Rep: Reputation: 30
Mandriva wireless..can't ping router but have valid IP [SOLVED]


I can't quite understand why this is happening. i have installed ndiswrapper properly and installed drivers for a dwl-g630. after modprobe ndiswrapper i am able to gain a valid ip address after iwconfig wlan0 mode managed and entering a key etc. however, after dhcpcd wlan0 i should have access but i don't. it actually says "dhcpcd.exe wrong interface name wlan0" this is garbage since i know it is the right interface name because that is what iwconfig tells me it is. i am a bit disappointed in mandriva for this but if i am having problems with it i am sure someone else has to. as always, any help would be appreciated.

Last edited by dauphinfay; 01-18-2006 at 08:58 PM.
 
Old 01-18-2006, 06:51 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm not sure that Mandriva uses dhcpcd. Try either ifup wlan0 or dhclient wlan0 and see if you get better results.

Quote:
dhcpcd.exe wrong interface name wlan0
Um, I'd be much more worried about why you're getting an error about dhcpcd.exe. The .exe bit is a Windows extension and really shouldn't be there.
 
Old 01-18-2006, 06:58 PM   #3
dauphinfay
Member
 
Registered: Jan 2004
Location: Earth
Distribution: Ubuntu
Posts: 301

Original Poster
Rep: Reputation: 30
thank you for the response Hangdog. however, it still didn't work. there is no problem with the hardware because i am able to connect under windows here on this same machine. here is the result:

--- 192.168.0.1 ping statistics ---
0 packets transmitted, 0 received, +3 errors

[root@localhost sinjin]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/wlan0/00:11:95:69:09:5e
Sending on LPF/wlan0/00:11:95:69:09:5e
Sending on Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.103 -- renewal in 264237 seconds.
[root@localhost sinjin]# ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.103 icmp_seq=1 Destination Host Unreachable
From 192.168.0.103 icmp_seq=1 Destination Host Unreachable
From 192.168.0.103 icmp_seq=1 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---
0 packets transmitted, 0 received, +3 errors

[root@localhost sinjin]# ifup wlan0

Determining IP information for wlan0... done.
[root@localhost sinjin]# iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11b ESSID:"cove"
Mode:Managed Frequency:2.437 GHz Access Point: 00:80:C8:1C:54:83
Bit Rate:11 Mb/s
Encryption key:0123-4567-8901-2345-6789-1234-56 Security modepen
Link Quality:54/100 Signal level:-44 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

[root@localhost sinjin]#
 
Old 01-18-2006, 08:30 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
DHCPACK from 192.168.0.1
bound to 192.168.0.103 -- renewal in 264237 seconds.
This says that you did get an IP address from the dhclient request and you should see that in the ifconfig output. Do you?

If you do, then also check the output of route -n and make sure that the gateway is pointing to your router's IP address.

One other thing to try would be to set a static IP address and see if that works. You have to do three things to get a static IP address to work:
1) Set the static IP address with ifconfig (ifconfig wlan0 xxx.xxx.xxx.xxx)
2) Set up the gateway with route (route add default gw yyy.yyy.yyy.yyy) And the IP address of this MUST be your router
3) Add your ISP's namserver IP addresses to your /etc/resolv.conf file, one per line:
nameserver xxx.xxx.xxx.xxx
 
Old 01-18-2006, 08:58 PM   #5
dauphinfay
Member
 
Registered: Jan 2004
Location: Earth
Distribution: Ubuntu
Posts: 301

Original Poster
Rep: Reputation: 30
well. strangely enough i used the gui interface under mandriva control center and configuring the wireless worked. im still a bit disappointed that i couldnt get it to work from the cli. in the end though i am up and running.
 
  


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
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
Can ping wireless router, but not get online toby_A Linux - Wireless Networking 5 01-01-2005 07:56 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
Wireless laptop sees router but can't ping anything darin3200 Linux - Laptop and Netbook 5 07-30-2004 09:11 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 04:31 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