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
 
LinkBack Search this Thread
Old 03-23-2005, 01:42 PM   #1
costrevs
LQ Newbie
 
Registered: Mar 2005
Posts: 13

Rep: Reputation: 0
Wifi help please -- switching networks; Yast vs. hosts file


Hey All,

Intro:
HP Laptop w/ Netgear wg511T pcmcia wireless card
Suse 9.2 Pro

Wireless is up and running fine. However, two problems have been bugging me.

1) I generally use my computer at home. Sometimes I need to use it on the road and hook up to a public wifi hotspot. Getting my card a DHCP address from any public spot has been a real pain in the butt. I've tried using Kwifimanager but it doesn't seem to do the trick.

Here's some background:

I set up the card using Yast. Took 2 minutes. All default settings except the ESSID and the ASCII password. Everything worked.

When I go to a public wifi, I try to scan the network using

iwlist ath0 scan

I can see some stuff. So I enter the new ESSID and mode and key and whatever else comes up on the scan like so

iwconfig ath0 essid "someNetworkName"
iwconfig ath0 mode Managed
iwconfig ath0 key off

then I make sure the ath0 interface is up:

ifup ath0

then if i don't see an IP, I run

dhcpcd -t 10 -d ath0

and usually I get a long wait and then

"no IP address yet... backgrounding"

tried ifdown eth0 to knock down my wired nic, no luck

it never can get a DHCP address. it can see the AP and get the mac address, but no IP.

The one time I did get it to work, I changed my settings in Yast for ESSID and authentication. I committed the changes in Yast, no luck. I rebooted the machine and YES, an IP address.

What am I missing here? What might have happened on the reboot that I wasn't doing before?

FYI, the pcmcia card is set to 'hotplugged'

the wired nic is set to 'ifplugd"


2) Whenever I run Yast and change anything on my network cards, Yast decides to overwrite my /etc/hosts file with some old version of my hosts file. I have a bunch of apache host info there so every time Yast does this I have to copy back my backup version of the hosts file to get my virtual hosts up again. Does anyone know how I can keep Yast from overwriting my hosts file every time it does any network operations?

I'd love to be able to do all this stuff w/o Yast as I see Yast as a blessing and a curse. It seems helpful sometimes, but more often than not it's doing stuff I don't know about and can't figure out how to keep it from changing things I don't want changed.

Any help is much appreciated.

-Russell
 
Old 03-24-2005, 02:42 AM   #2
ignorant_savant
Member
 
Registered: Oct 2004
Location: Phoenix, AZ
Distribution: Slackware, SuSE
Posts: 54

Rep: Reputation: 15
My SuSE experience

SuSE by default sets the dhcpcd(dynamic host configuration protocol client daemon) on the wired interface. This is the service that requests an IP address from the dhcp daemon.

First shut it down as root:

#dhcpcd eth0 stop

next type:

#dhcpcd ath0 start

If it worked you will see ath0 being returned by the ifconfig command.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
switching between 2 different wireless networks shadowsa Suse/Novell 2 11-04-2005 09:48 PM
Switching networks and interfaces? mlg9000 Linux - Laptop and Netbook 0 11-17-2004 10:39 PM
wifi and changing networks yukaputzer Linux - Newbie 1 12-18-2003 04:23 PM
How to change between networks with wifi yukaputzer Linux - Newbie 1 12-18-2003 02:14 PM
switching networks... mathfeel Mandriva 0 12-03-2003 11:04 PM


All times are GMT -5. The time now is 11:37 AM.

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