LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2005, 07:21 AM   #1
spondootre
Member
 
Registered: Jun 2005
Distribution: Mandriva 2005 limited ed.
Posts: 39

Rep: Reputation: 15
wireless card problems, getting DHCP but not internet


I have installed madwifi drivers for my laptops pcmcia wireless card, I have had this card working perfectly in the past but have had to re-install linux Mandriva because of problems. Now I am having difficulty withusing the card, here's what i have done......

Installed and compiled Madwifi drivers,
added setpci -s 0:14.4 SUBORDINATE_BUS=0A to pcmcia file in /etc/rc.d/innit.d
plugged in the card, ifconfig ath0 up (card starts flashing away)
then dhclient ath0
which gives the card ipaddress etc from my router. BUT I can't connect to the net etc.....

Any ideas what I can try???

Thanks for any help you may be able to give
Malc
 
Old 07-23-2005, 09:52 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Try not doing "ifconfig", and doing
iwconfig ath0 mode "Managed"
iwconfig ath0 essid "ESSID"
and if you use Encryption,
iwconfig ath0 key "KEY"
Note: you can use one command like
iwconfig ath0 mode "Managed" essid "ESSID" key "KEY"
then
dhcpcd, not dhclient.
This is how it works on my machine. I don't know whether dhclient works as well, I just use dhcpcd.
 
Old 07-23-2005, 11:50 AM   #3
spondootre
Member
 
Registered: Jun 2005
Distribution: Mandriva 2005 limited ed.
Posts: 39

Original Poster
Rep: Reputation: 15
I tried that but still no joy, when I use $ iwconfig ath0 this is what I get :

iwconfig ath0
ath0 IEEE 802.11g ESSID:"private network" Nickname:"192.168.1.1"
Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:66:4D:20:6D
Bit Rate:54 Mb/s Tx-Power:18 dBm Sensitivity=0/3
Retryff RTS thrff Fragment thrff
Encryption keyff
Power Managementff
Link Quality=35/94 Signal level=-60 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Is this saying it is connected to my router? which has an ssid of "private network"
the lights on the card suggest that it is, if I use $ dhclient ath0

dhclient ath0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
eth1: unknown hardware address type 24
sit0: unknown hardware address type 776
eth1: unknown hardware address type 24
Listening on LPF/ath0/00:11:95:17:8c:99
Sending on LPF/ath0/00:11:95:17:8c:99
Sending on Socket/fallback
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.109 -- renewal in 42803 seconds.

Which is saying it has got an ipaddress from 192.168.1.1 (my router)

BUT if i try and ping the router -

ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.1.109 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.1.109 icmp_seq=3 Destination Host Unreachable
ping: sendmsg: Operation not permitted

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +8 errors, 100% packet loss, time 2022ms

?!?! What's going on?!!


Thanks
Malc
 
Old 07-23-2005, 12:10 PM   #4
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Maybe your router has some setting that is blocking you from using the net. For example, my linksys router allows me to block wireless cards by their MAC address.

See if by default you browser has blocked all wireless. If so, you can either choose "allow all" or you can choose to allow by the MAC address.
 
Old 07-23-2005, 12:15 PM   #5
spondootre
Member
 
Registered: Jun 2005
Distribution: Mandriva 2005 limited ed.
Posts: 39

Original Poster
Rep: Reputation: 15
I've reviewed the router settings and it is open to all at the moment, no encryption, no mac filtering and up to 50 client connect so I think that is ok, it was working until I had to re-install mandriva and now I can't figure it out!! I am at a total loss now as to what I can try.

Thanks
Malc
 
Old 07-23-2005, 01:36 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Maybe is something is screwed up with your routing table ... what does "netstat -rn" (no quotes) show?
 
Old 07-23-2005, 02:03 PM   #7
spondootre
Member
 
Registered: Jun 2005
Distribution: Mandriva 2005 limited ed.
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for the reply, I typed it in.....here's the result :

netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ath0

Thanks
Malc
 
Old 07-24-2005, 09:25 AM   #8
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
routing table looks good, no loopback though. But that should not be the problem. What does "ifconfig" say (no parameters)?
 
Old 07-24-2005, 04:02 PM   #9
spondootre
Member
 
Registered: Jun 2005
Distribution: Mandriva 2005 limited ed.
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for your reply tuxdev!! I managed to get it working again!! but I really have not much of an idea what i've done!! It was something to do with a $export KERNELRELEASE'uname -r' command I think but i am no more clued up to how to get it working than I had before!!

Thanks loads for your help though, i'm off to play around with it and see what I can find out. I read through a linux for dummies book but it's not really informative enough so i've got various other stuff to read through, years of Windows and an MCSE have rotted my brain!! lol

Malc
 
  


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
Wireless card gets IP (dhcp) but can't ping hamish Linux - Wireless Networking 6 03-10-2009 02:11 PM
wireless card cannot obtain IP address from DHCP server kswitch Linux - Wireless Networking 6 11-06-2005 11:36 AM
how to config wireless internet by dhcp sparkspt Linux - Wireless Networking 2 01-30-2005 07:55 AM
how to config wireless internet by dhcp sparkspt Linux - Wireless Networking 3 01-24-2005 08:29 PM
Using DHCP on ADMTek 8211 wireless card hachuah Linux - Wireless Networking 2 08-02-2004 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 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