Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
maldojr88
n00b
n00b


Joined: 05 Feb 2008
Posts: 53

PostPosted: Fri Feb 15, 2008 2:52 pm    Post subject: Wireless Reply with quote

Hello guys im having a little networking problem
im new to gentoo.
I configured my pcmcia wireless card with ndiswrapper and got the
driver working properly with the device. The light(wireless) turns on and everything
and when i go to school im able to connect to the internet. This wireless internet is not secure.

However, my home network is secure. And i have a WEP key.
Ive tried connecting to it but no luck.
within many other commands i use

Code:
#iwconfig wlan0 essid "myname" key "mykey"


when i run iwconfig after the above command i get no access point. I try running dhclient to see if i can get IP but it doesnt work

I try starting the connecting via the /etc/init.d/net.wlan0 script .
But no luck either.

Can some body guide me thru this one?


One other thing, how do i get the wireless card module to load at boot up?

Thanks in advance.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Fri Feb 15, 2008 3:52 pm    Post subject: Reply with quote

This is what the Gentoo Handbook has to say about networking in general and wireless networking in special:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4
Back to top
View user's profile Send private message
maldojr88
n00b
n00b


Joined: 05 Feb 2008
Posts: 53

PostPosted: Sat Feb 16, 2008 4:45 pm    Post subject: Reply with quote

thanks for the replay....
ive already looked at these pages like 5 million times :(
but i tried once more but with no luck.....

maybe i might have missing information on my configuration files. Basically
you only need the WEP key to connect to my home network.

/etc/wpa_supplicant/wpa_supplicant.conf

Code:
# The below line not be changed otherwise we refuse to work
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

network={
  ssid="myhome"
  key_mgmt=NONE
  wep_key1="XXXXXXX"
   wep_tx_keyidx=0
  priority=1

}



/etc/conf.d/net

Code:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0="(dhcp)"
dhcp_eth0="nodns nontp nonis"


# Prefer wpa_supplicant over wireless-tools
modules=( "wpa_supplicant" )

# It's important that we tell wpa_supplicant which driver we should
# be using as it's not very good at guessing yet
wpa_supplicant_wlan0="-Dndiswrapper"
config_wlan0="(dhcp)"



then i try the following

Code:
$sudo /etc/init.d/net.wlan0 restart


Quote:
* Stopping wlan0
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* Bringing down wlan0
* Stopping dhcpcd on wlan0 ... [ ok ]
* Shutting down wlan0 ... [ ok ]
* Stopping wpa_cli on wlan0 ... [ ok ]
* Stopping wpa_supplicant on wlan0 ... [ ok ]
* Starting wlan0
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* Starting wpa_supplicant on wlan0 ...
ioctl[SIOCSIWPMKSA]: Invalid argument [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Backgrounding ...



then :
Code:
sudo iwconfig


Quote:
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"myhome"
Mode:Managed Frequency:2.437 GHz Access Point: 00:E0:98:DA:38:C9
Bit Rate=54 Mb/s Tx-Power:24 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:off
Power Management:off
Link Quality:92/100 Signal level:-37 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0




I dont think im getting IP
Helpppp
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sat Feb 16, 2008 4:53 pm    Post subject: Reply with quote

Try wep_key0 instead of wep_key1, otherwise your wpa_supplicant.conf looks ok. But try changing
Code:
config_eth0="(dhcp)"

to
Code:
config_eth0=( "dhcp" )

or
Code:
config_eth0="dhcp"

(likewise for wlan0) and remove the /etc/conf.d/wireless file. The warning you get says its deprecated, but maybe the init script still picks up configuration data from there.

Edit: Yes, found the error. From /etc/wpa_supplicant.conf.example:
Code:
# wep_tx_keyidx: Default WEP key index (TX) (0..3)

You specify a default index of 0, but use wep_key1. As I said, change to wep_key0.
Back to top
View user's profile Send private message
maldojr88
n00b
n00b


Joined: 05 Feb 2008
Posts: 53

PostPosted: Mon Feb 18, 2008 6:18 am    Post subject: Reply with quote

did exactly what you recomended....
still no wireless
=(
Back to top
View user's profile Send private message
maldojr88
n00b
n00b


Joined: 05 Feb 2008
Posts: 53

PostPosted: Mon Feb 25, 2008 4:20 pm    Post subject: help anyone??? Reply with quote

hellllllp
can't get this to work!!!!!!!!!!!!!!!!!!!!!!!!!
tried a million things and nothing
Back to top
View user's profile Send private message
dpshak
Apprentice
Apprentice


Joined: 05 May 2005
Posts: 190
Location: Wisconsin

PostPosted: Mon Feb 25, 2008 8:03 pm    Post subject: Reply with quote

Unfortunately, I know nothing about wpa_supplicant. I also remember having a hell of a time getting my wireless to work - which is probably why I know nothing about wpa_supplicant - I could never get it set up properly using the various tutorials! So, what follows is what works for me! :wink:

I'm a truck driver and I use my laptop, on the road, with various open wifi networks at truckstops. I also have an encrypted, closed network at home. I have a Compaq with a Broadcom wifi chip and I also use ndiswrapper. This is the contents of my /etc/conf.d/net:

Code:
# Network(s) setup configuration
# eth0 setup
dns_domain_lo=ABCABCABC
config_eth0=( "dhcp" )

# wlan0 setup for Home and Truck Access Points
key_ABCABCABC="1234-5678-9123-4567-8912-3456-78 enc open"
preferred_aps_wlan0=( "ABCABCABC" "LANDSTAR" "schneider" "TA" "SIRICOMM" )
config_wlan0=( "dhcp" )
associate_order_wlan0="forcepreferred"

# Working settings - Basic Homenetwork
#essid_wlan0="ABCABCABC"
#key_ABCABCABC="1234-5678-9123-4567-8912-3456-78  enc open"
#channel_wlan0="6"
#config_wlan0=( "dhcp" )


The first section if for a hardwired ethernet connection, the second section is for my actual configuration for my wireless, and the last section is for troubleshooting the wireless. Periodically, after updates, something gets discombooberated and I have to fall back on the last section to troubleshoot! As I recall, the biggest problem I always have is getting the 'puter to play nice with multiple access points, especially when some are encrypted and others open - hence the difference between the troubleshooting section and the actual usage section. I should mention that any sensitive stuff has been altered! 8) I hope this helps a little, or at leasts points you in the right direction!
Back to top
View user's profile Send private message
BaNdit400
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 93
Location: Italy, Paliano (FR)

PostPosted: Mon Feb 25, 2008 9:39 pm    Post subject: Reply with quote

I have the same problem...

https://forums.gentoo.org/viewtopic-p-4895579.html#4895579

...the error is clearly visible:

Quote:
* Starting wlan0
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* /etc/conf.d/wireless is deprecated
* Please put all settings in /etc/conf.d/net
* Starting wpa_supplicant on wlan0 ...
ioctl[SIOCSIWPMKSA]: Invalid argument [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Backgrounding ...


Wide Open

Gianluca ''BaNdit400''
Back to top
View user's profile Send private message
maldojr88
n00b
n00b


Joined: 05 Feb 2008
Posts: 53

PostPosted: Tue Feb 26, 2008 2:25 am    Post subject: Reply with quote

DPSHAK
!!!!!!!!!!!!!!!!!!!
YOu did it.....
THANK YOU
It worked!!!!!!!!!!!
FINALLY
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum