LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2004, 03:10 PM   #1
Rekna
Member
 
Registered: Mar 2004
Posts: 33

Rep: Reputation: 15
Odd Network Setup problem


I am attempting to get waproamd to work. After playing around a few hours I can now get waproamd to fire off a script when it associates with an access point. It pulls the correct information from files and sets wlan0 accordingly. Here is the odd thing when waproamd fires up on boot it associates and uses dhcp to get an ip. It gets an IP just fine via using dhclient. But when I try to access the network I get problems with the host being unreachable.

The commands the script runs are the following

ifconfig wlan0 down
iwconfig wlan0 key open ##########
iwconfig wlan0 essid $$$$$$$
iwconfig wlan0 ap any
ifconfig wlan0 up
dhclient -q wlan0

I have also tried

dhclient -r
iwconfig wlan0 key open ##########
iwconfig wlan0 essid $$$$$$$
iwconfig wlan0 ap any
ifconfig wlan0 up
dhclient -q wlan0

If I run these scripts after I login or I restart waproamd it works fine. But on boot it fails to work.

is dhclient -r the best way to release an IP so I get a new one?

I just tried out linux while at a different wirless network and it came up just fine. So i'm thinking I need to add a flag to the dhclient but i'm unsure. At home i'm on a lynksys accesspoint.

Anyone have any suggestions on why I am gettings host is unreachable until I rerun the script?
 
Old 03-29-2004, 07:44 PM   #2
Rekna
Member
 
Registered: Mar 2004
Posts: 33

Original Poster
Rep: Reputation: 15
More information:

the error message I actually get is no route to host

when I type the command route it hangs on the last entry for about a a minute then resolves correctly.

if I do a route del default followed by a route add default gw IPADDY it still hangs
 
Old 03-29-2004, 11:16 PM   #3
Rekna
Member
 
Registered: Mar 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Even more info:

I tried to make the script run 2 minutes after the system booted up. It ran just fine but still I got no route to host errors.

So next I tried to make the script execute as a shell login script. I touched a file and deleted it on shutdown so that only the first login would cause the script to run.

Still I had the same problems.

So it seems like there is some sort of problem with automated scripts. Is there some varaible set when a script is executed by hand versus by an login or startup script?
 
  


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
Network setup problem Xing Linux - Networking 19 07-23-2005 08:11 AM
Odd FTP setup? Timme Linux - Newbie 2 12-13-2004 01:13 PM
very odd network problem (haven't seen it asked yet) the bishop Mandriva 6 06-22-2004 03:38 PM
Network Setup Problem actinide16 Linux - Newbie 2 02-13-2004 08:47 PM
Adding Linux to XP boot menu with an odd setup? superdigg Linux - General 1 10-11-2002 02:39 PM

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

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