LinuxQuestions.org
Help answer threads with 0 replies.
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 08-15-2004, 04:50 PM   #1
thiqued
LQ Newbie
 
Registered: Jul 2004
Distribution: Mandrake 10
Posts: 23

Rep: Reputation: 15
Difficulty setting up wireless network, running route


Hello. I am running Slackware 10 on the laptop on which I am attempting to configure wireless. Drivers are no problem as madwiki provides drivers for my atheros chip. the drivers are installed and I am able to see my home network and another faint wirelss network when I run iwlist ath0 scan and I am able to connect to the network with iwconfig ath0 essid "NETGEAR." However, I am unable to ping any internet IP addresses or IP addresses of other computers on my home network. After browsing these fourms I noticed that people were often told to post the results of route -n. When I run route -n , the only entry is for 127.0.0.0, which I am assuming is the local machine. I think that I need to use route to install a new route but I'm not fully sure how this works. Any help would be greatly appreciated.

Thanks in advance,
Dave McQuown
 
Old 08-15-2004, 05:15 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
You say you can see your network but you also say you can't ping your network.
I think you forgot to get an ip address
use
dhclient
to get one
and have a look with
route -n
 
Old 08-15-2004, 11:53 PM   #3
thiqued
LQ Newbie
 
Registered: Jul 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by arno
You say you can see your network but you also say you can't ping your network.
I think you forgot to get an ip address
use
dhclient
to get one
and have a look with
route -n
Actually, I misspoke. I cannot see the network: I can se the access point and connect to it but I am unable to browse the network. When I ran dhclient it told me that the IP address was alread set. This is probably because I plug my computer into the wired network most of the time and this works perfectly. When I take the wired network down with ifconfig eth0 down and the run dhclient it tells me that there are no broadcast interfaces found.
 
Old 08-16-2004, 06:25 AM   #4
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Because i'am on cet time zone I will cram as much questions and information to get things working asap
1) I notice you use ath0 which should be no problem but most of the tome wlan0 is used, so where I type wlan0 read ath0
2)
There are different reasens for not receiving broadcast
2a)
Your not on the same net
cat /etc/sysconfig/network-scripts/ifcfg-wlan0
you might see
NETWORK=192.168.0.0
if you AP has an adress like 192.168.1.1
2b)
You dit not made the connection to your AP
iwconfig wlan0 mode Managed
iwconfig wlan0 ESSID linksys #your router SSID 'linksys - out of box default'
iwconfig wlan0 channel 6 #your router channel 'linksys - default 6'
iwconfig wlan0 rate Auto
2c)
WEP is active, this is something I cannot help you
3) could you post the output of
iwconfig
4) and
dmesg
only the lines reffering to your nic
 
Old 08-16-2004, 09:47 AM   #5
thiqued
LQ Newbie
 
Registered: Jul 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
iwconfig and dmesg

Quote:
Originally posted by arno
3) could you post the output of
iwconfig
4) and
dmesg
only the lines reffering to your nic
iwconfig
IEEE 802.11g ESSID:"NETGEAR"
Mode:Managed Frequency:2.462GHz Access Point: 00:09:5B4:38:6A
Bit Rate:11Mb/s Tx-Power:50 dBm Sensitivity=0/3
Retryff RTS thrff Fragment thrff
Encryption keyff
Power Managementff
Link Quality:79/94 Signal level:-16 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

dmesg
ath_hal: 0.9.11.6
wlan: 0.8.3.0 (EXPERIMENTAL)
ath_pci: 0.9.3.1 (EXPERIMENTAL)
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 5.9 phy 4.3 5ghz radio 4.6
ath0: 802.11 address: 00:90:96:b4:af:0c
ath0: Use hw queue 0 for WME_AC_BE traffic
ath0: Use hw queue 1 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Atheros 5212: mem=0xd0200000, irq=11
 
Old 08-16-2004, 11:19 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
If you run dhcpcd ath0, you should be able to get both an IP from your AP and have route properly set. That said, if you need to add a gateway (and you ususally only need to do this if you are setting a static ip with ifconfig), the command is

route add default gw RouterIPaddress
 
Old 08-16-2004, 11:47 AM   #7
thiqued
LQ Newbie
 
Registered: Jul 2004
Distribution: Mandrake 10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Hangdog42
If you run dhcpcd ath0, you should be able to get both an IP from your AP and have route properly set. That said, if you need to add a gateway (and you ususally only need to do this if you are setting a static ip with ifconfig), the command is

route add default gw RouterIPaddress
Running dhcpcd ath0 does gives me neither an ip address nor a route. It takes a while but does not set anything.
 
Old 08-16-2004, 01:55 PM   #8
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Found a link on the forum with the same kind of problem, just have a look

http://www.linuxquestions.org/questi...hreadid=213097
 
Old 02-05-2006, 04:35 PM   #9
starlypti
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
similar problem....

All has been configured correctly. I recieve an IP address from the access point running either dhclient or simply ifup ath0, however I am unable to ping outside the network or even to the gateway under any domain name, and only the google.com IP address itself. I cannot resolve dns's [running a regular access point, wireless card atheros client for any wireless network I am attempting to connect to. My resolv.conf shows search localhost, but this shouldn't matter as I am merely connected to wireless access points, which should give DNS servers from the gateway automatically.

I have not been able to figure out the problem. I am running fedora core4, and can recieve IP addresses from the ifcfg-ath0 script I have written. I can run an iwlist scan and pick up access points and obtain IP addresses, visible under route -n as well as ifconfig.


Please help, offer suggestions for why I cannot ping and why 'unknown host' shows up on every ping request other than a direct request to an ip address.
 
Old 02-05-2006, 04:58 PM   #10
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
If resolv.conf only contains search localhost and you are not running a local dns server it will never translate the names into an ip address.
Just try changing "search localhost" into "nameserver Address"
You have to reboot to test the new settings.
If the resolv.conf lost the new settings after a reboot add
PEERDNS=no to the ifcfg-ath0 script
(PEERDNS=yes loads the nameserver info into the resolv.conf when you use DHCP to setup you network settings)

Last edited by arno; 02-05-2006 at 05:11 PM.
 
  


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
Setting up my wireless network. Ashran Linux - Hardware 2 03-16-2005 11:39 AM
Help setting up Wireless network card BeckinNC Linux - Wireless Networking 6 02-12-2005 04:15 PM
Difficulty setting up BT Voyager 2000 Wireless on Slackware 10.0 Apocalypse King Linux - Hardware 0 09-21-2004 12:57 PM
Setting DNS route on wireless NIC crunchywelch Linux - Wireless Networking 5 08-18-2003 08:17 PM
Setting up wireless network on a laptop darin3200 Linux - Laptop and Netbook 4 06-25-2003 04:53 PM

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

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