I must "Activate" after reboot to bring up wireless?
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I must "Activate" after reboot to bring up wireless?
I recently got my wireless NetGear MA311 card up and running (thanks to this
forum). It is eth1, and eth0 is my (now disconnected) wireful ethernet port.
I find that when I reboot my RH9 system, as it starts, it says "bringing up eth0"
right at the beginning (which it can't do, of course, since there is no longer
a wire plugged into the ethernet port), but nothing about eth1.
Once I have rebooted, I have no net connectivity. I find that I must
enter the RH GUI tool System Settings > Network Configuration,
select eth1, and click the big green "Activate" button. Then I'm fine.
But what command do I have to enter or file do I have to edit (or
selection in some GUI tool do I have to make, for that matter) to
make the machine try to bring up eth1 automatically upon boot, the
way it always used to for eth0, back when I had a wire?
And what shell command is the cute GUI tool actually executing when
I click the big green "Activate" button?
Usually you have to set several parameters to get the wireless card to work. Once you get the commands right, you can either write a script that will be run at boot or you can add the individual commands to /etc/rc.d/rc.local ( this is the Slackware location, I don't know RH- there should be a file boot.local or local
where you can add your own commands).
My parameters are as follows:
ifconfig wlan0 192.168.1.10 # this sets a static address on my home network
# for the wireless card
iwconfig wlan0 mode Managed channel 6 essid XXXXXXX key restricted XXXXXXXXXXX
# this sets the various parameters for my card
# read "man iwconfig" for more info
# the XXX = my specific settings, essid is the SSID
# name of the card and the other is my WEP code
route add default gw 192.168.1.1 # this sets the gateway to be used, this is
# the IP of my router
I just wrote a simple script with these parameters and put it in /etc/rc.d/rc.local and now it runs at boot time and sets up the card automatically.
But what is the difference between all the files that look like
the one you pointed me at, and how would I know (in the
absence of your posting) which one(s) I should edit?
I see that all of the following have this same parameter:
Those are profiles you can setup for wireless at home, office, starbux etc.
When grub comes up during linux booting process, you can specifiy which
profile you want to load by passing it as a parameter to the kernel.
I forget syntax, but check out RH docs and Grub How-to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.