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 08-28-2010, 09:26 PM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Rep: Reputation: 16
unable to join wep network manually...


I'm trying to join a wireles lab that I've setup with WEP encryption, but I'm unable to join. (I've tried on two different distros: ubuntu, and backtrack) same result.

here are the commands:

Code:
ifconfig wlan0 down
iwconfig wlan0 mode managed
iwconfig wlan0 essid MYNET
iwconfig wlan0 key XXXXXXXX
iwconfig wlan0 channel 3
dhclient wlan0
tries to contact dhcp but none responde to request, and when I do iwconfig, it shows as not associated

any help appreciated

thanks
 
Old 08-29-2010, 11:36 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Try "iwconfig wlan0 key restricted XXXXXXXX" and bring up wlan0 again.
 
Old 08-29-2010, 01:55 PM   #3
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by quanta View Post
Try "iwconfig wlan0 key restricted XXXXXXXX" and bring up wlan0 again.
same result... it tries to contact dhcp but is unsuccessful. And iwconfig shows "Not-Associated." What am I missing here?
 
Old 08-29-2010, 02:54 PM   #4
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
I'm not familiar enough with networking to answer your questions, but here's what I use for iwconfig (the unusual options are to combat wireless interference (darn 108Mbps networks... they zap everything in the 2.4Ghz band.))

I use Gentoo, and this script was added at the top of the service for net.eth1 (the return code is checked by the other script). It's on a static IP, but I currently need dhcpcd to get everything else.
Code:
#!/bin/bash

#Just make sure localhost works
ifconfig lo up

#Set the wifi for our network. Force the settings.
iwconfig eth1 channel 5
(iwlist scan 2>/dev/null) | grep -o <our essid> &>/dev/null
if [ $? -eq 0 ]
then
	iwconfig eth1 essid <our essid> mode Managed channel 5 ap 00:0F:B5:E2:DA:A2 txpower 100mW sens 1 rts 256 frag 256 key <our wep key> power all
	ifconfig eth1 192.168.1.12
	dhcpcd -q -X 192.168.1.12 eth1 &>/dev/null
	echo > /etc/homewifi
	exit 0
fi

rm -f /etc/homewifi
exit 1
Although I don't think it will, I hope this helps.
 
Old 08-29-2010, 09:25 PM   #5
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Please give us the output of 'iwlist wlan0 scan' and 'dhclient wlan0'. As a temporary solutions, I suggest you use wicd instead of manually configure from command line, and troubleshoot this problem later.
 
1 members found this post helpful.
Old 08-31-2010, 11:43 AM   #6
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Original Poster
Rep: Reputation: 16
Thanks, I installed wicd, and it worked!
 
  


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
b43-fwcutter-no connection with WEP encrypted network while WPA network works blorpton Linux - Networking 6 01-25-2010 02:06 AM
Unable to connect to school WEP network on Intel 4965 skale Linux - Wireless Networking 1 08-26-2007 05:07 PM
Unable to join domain using Net Join command in FC3 client jeb083079 Linux - Networking 9 07-30-2007 02:41 AM
can connect to wlan when WEP is off, but when WEP is off cannot join wlan teknoratti Fedora 1 09-01-2006 02:56 AM
[Slackware 10.2] Unable to join network Harkov Linux - Networking 3 10-20-2005 05:35 AM

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

All times are GMT -5. The time now is 04:57 AM.

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