LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-04-2004, 11:13 PM   #1
linuxceptic
LQ Newbie
 
Registered: Jan 2004
Distribution: Ubuntu Hardy Heron
Posts: 18

Rep: Reputation: 0
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.
 
Old 02-05-2004, 07:01 AM   #2
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
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
 
Old 02-05-2004, 10:12 AM   #3
laltopi
Member
 
Registered: Jan 2004
Location: Silicon Valley
Distribution: Fedora[2-3]
Posts: 44

Rep: Reputation: 15
Edit your /etc/sysconfig/network-scripts/ifcfg-eth1 file,

add or edit the following line
ONBOOT=yes.

This attempts to bring the interface up.
 
Old 02-05-2004, 05:28 PM   #4
linuxceptic
LQ Newbie
 
Registered: Jan 2004
Distribution: Ubuntu Hardy Heron
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 02-06-2004, 01:17 AM   #5
laltopi
Member
 
Registered: Jan 2004
Location: Silicon Valley
Distribution: Fedora[2-3]
Posts: 44

Rep: Reputation: 15
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
Ipw2200 wireless will not "Activate" on HP NC8000 laptop jmnugent Linux - Wireless Networking 7 04-02-2005 02:40 AM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 07:57 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration