>>>2. Because I live in an area with lots of wireless connections, I found
>>>myself connecting to routers that I shouldn't be and I believe that my
>>>internet connection is dropping from time to time because of this. If my
>>>wireless internet connection dies, what is the most proper way to
>>>restart it (as opposed to re-booting my machine, which I normally do)?
>>
>>
>> ifdown eth1
>> ifup eth1
>
> I've tried doing "ifdown eth1" and "ifup eth1" and it doesn't work. What
> else could I do to get the same results as re-booting?
I'd hope you're using at least WEP, which generally helps to filter out
unwanted access points, but the previously mentioned "ESSID" settings are
definitely the way to go.
Try assigning the whole thing manually:
ifconfig eth1 <replace with machine IP>
iwconfig eth1 essid <replace with ESSID> key <replace with WEP key> mode
managed route add default gw <replace with gateway>
....or at the very least setting the essid, and manually request a DHCP
assigned address from the access point.
iwconfig eth1 essid <replace with ESSID>
dhclient eth1
Cheers
Tim
--
"Linux... because rebooting is for adding new hardware!"
http://home.swiftdsl.com.au/~tmccoy
MSN:
(E-Mail Removed)
ICQ: 160341067