Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th January 2008, 05:04 AM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 43
Posts: 532
Smile Automatic reconnection when wireless connection drops? wireless script?

The wireless connection we have at work drops out on a number of occasions throughout the day and thus requires me to reactivate via:

System>Administration>Network

I find the whole thing time consuming and annoying.

Could i create a shell script with user privileges whereby i would just click on a link to reconnect/ repair my connection and also for automatic connection when it drops. This would be really useful.

This is how i set up my rt73 usb adapter in which i compile myself from http://rt2x00.serialmonkey.com/wiki/index.php/Downloads

Code:
gedit /etc/sysconfig/network-scripts/ifcfg-wlan0
Code:
# rt73
DEVICE=wlan0
BOOTPROTO=dhcp
HWADDR=00:0E:2E:CE:72:D1
ONBOOT=yes
TYPE=wireless

Also another question that has been bugging me for a long time is how to connect using dhcp in the terminal. For a static address i use the following:

Code:
su -
modprobe rt73
ifconfig wlan0 up
iwlist wlan0 scan
iwconfig wlan0 ap any
ifconfig wlan0 192.168.1.102 netmask 255.255.255.0
echo nameserver 192.168.1.1 > /etc/resolv.conf
echo nameserver 203.121.130.39 >> /etc/resolv.conf
echo nameserver 203.144.255.72 >> /etc/resolv.conf
route add default gw 192.168.1.1
ifconfig -a
johnny

Last edited by jonathonp; 5th January 2008 at 05:07 AM.
Reply With Quote
  #2  
Old 5th January 2008, 01:32 PM
nyjetshead Offline
Registered User
 
Join Date: Oct 2007
Posts: 633
Which version are you running?
Have you tried Network Manager?
It will do the dirty work for you once you associate with the AP it will try to reconnect if it disconnects or some reason.
Is the system being left alone, a server, ... is that the reason for the use of scripts?
Reply With Quote
Reply

Tags
automatic, connection, drops, reconnection, script, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic connection of wireless with ndiswrapper fails lowsnr Servers & Networking 5 30th December 2008 11:49 PM
wireless connection drops to ZERO from 3/4 meters away from router crmpicco Servers & Networking 4 19th April 2008 05:30 AM
no automatic wireless connection mha Servers & Networking 1 29th April 2007 04:44 PM
Wireless reconnection issue. rtozer Servers & Networking 1 15th December 2005 02:38 PM
wireless drops the connection osho Hardware & Laptops 2 9th December 2004 02:04 AM


Current GMT-time: 11:13 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Moosburg Photos - Ksar Chellala Travel Photos - Beoumi