LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2003, 06:43 PM   #1
JoeBean
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
ifcfg option for key on?


I was going to post this in the hardware forum, but I thought this might be more appropriate. I have a wireless USB interface that I have configured in Redhat 9. It works perfectly without WEP enabled. With WEP enabled, it can't communicate with my wireless router on bootup, even though I have my ifcfg file altered with the settings for my network.

At first I had a problem with the MODE option in my ifcfg file. My wireless device won't accept that option, and it comes back with a segmentation fault. At any rate, after I fixed that by editing the ifcfg file, I still couldn't get the network to work. Finally, I discovered that if I execute "iwconfig eth0 key on" and then do "ifup ifcfg-eth0" (which is my wireless interface) everything works.

So the question is - how can I automate this? I would assume there's something I can put in my ifcfg file that would do this automatically, correct? If so, what would that be? If not, how should I run the first command on boot up?

TIA
 
Old 11-27-2003, 07:47 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
The syntax is:
KEY=12345abcdefg ...
Enter that in /etc/sysconfig/network-scripts/ifcfg-ethx and you should be able to avoid having to set the WEP key every time you reboot.
 
Old 11-28-2003, 06:35 AM   #3
JoeBean
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I know that, and I already have that in the file and it's working fine. My problem is that I need to be able to run the "iwconfig eth0 key on" command. Just having KEY=xxxxxxxxxxxx in there for some reason doesn't work with my wireless device. I have to specifically run "iwconfig eth0 key on" before I run "ifup ifcfg-eth0".

Maybe I'll post a copy of my ifcfg file because I might have something else messed up.

Thanks
 
Old 11-28-2003, 07:17 AM   #4
JoeBean
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Alright, here's my ifcfg file with "sensitive" info altered:

--------------------------------
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
DOMAIN=
NETMASK=
HWADDR=
TYPE=Wireless
DHCP_HOSTNAME=
IPADDR=
USERCTRL=no
PEERDNS=no
GATEWAY=
ESSID=mynet
CHANNEL=1
KEY=xxxxxxxxxxxxxxxxxxxxxxxxxx
RATE=Auto
-----------------------------------

As I mentioned above, this will let me connect to my network as long as I run iwconfig first. I'm wondering if this is caused because I can't have a MODE=whatever line in my ifcfg file. Any ideas?

Thanks for any help, even if you just read this and don't know the answer.
 
Old 11-28-2003, 09:31 AM   #5
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
(I wish I had my RH drive installed to check, but I'm running Slack this AM.)
Maybe a conflict with the channel and the mode setting. Try deleting the channel entry and setting MODE=managed or auto.
 
Old 11-28-2003, 02:28 PM   #6
JoeBean
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi again,
I'll give that a try and see what happens. I tried executing iwconfig with the mode command before and got the same segfault, though. But hopefully it'll work differently.

Thanks again!
 
Old 11-28-2003, 02:46 PM   #7
JoeBean
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Nope, still doesn't work unfortunately. Same segfault as I had at first.
 
  


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
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM
editing ifcfg-eth0 nkeever Linux - Newbie 4 05-05-2005 02:46 PM
ifcfg-wlan0 NEED HELP PLEASE yohan77 Linux - Wireless Networking 2 03-04-2005 08:49 PM
no ifcfg-wlan0 ehawk Linux - Wireless Networking 2 03-28-2004 10:42 PM
ifcfg-eth0:X alias problem dgenne Linux - Networking 1 03-17-2002 01:43 AM

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

All times are GMT -5. The time now is 11:36 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