LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   I must "Activate" after reboot to bring up wireless? (https://www.linuxquestions.org/questions/linux-wireless-networking-41/i-must-activate-after-reboot-to-bring-up-wireless-142481/)

linuxceptic 02-04-2004 11:13 PM

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?

Thanks.

aclaunch 02-05-2004 07:01 AM

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.

Good Luck
Alan

laltopi 02-05-2004 10:12 AM

Edit your /etc/sysconfig/network-scripts/ifcfg-eth1 file,

add or edit the following line
ONBOOT=yes.

This attempts to bring the interface up.

linuxceptic 02-05-2004 05:28 PM

You are beautiful. Thank you.

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:

/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/networking/devices/ifcfg-eth1
/etc/sysconfig/networking/profiles/default/ifcfg-eth1

Just curious . . .

Thanks.

laltopi 02-06-2004 01:17 AM

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.


All times are GMT -5. The time now is 03:18 AM.