View previous topic :: View next topic |
Author |
Message |
maldojr88 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Feb 2008 Posts: 53
|
Posted: Fri Feb 15, 2008 2:52 pm Post subject: Wireless |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maldojr88 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Feb 2008 Posts: 53
|
Posted: Sat Feb 16, 2008 4:45 pm Post subject: |
|
|
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 :
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 |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Feb 16, 2008 4:53 pm Post subject: |
|
|
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
(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 |
|
![](templates/gentoo/images/spacer.gif) |
maldojr88 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Feb 2008 Posts: 53
|
Posted: Mon Feb 18, 2008 6:18 am Post subject: |
|
|
did exactly what you recomended....
still no wireless
=( |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maldojr88 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Feb 2008 Posts: 53
|
Posted: Mon Feb 25, 2008 4:20 pm Post subject: help anyone??? |
|
|
hellllllp
can't get this to work!!!!!!!!!!!!!!!!!!!!!!!!!
tried a million things and nothing |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dpshak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/681497494b30d85005d22.jpg)
Joined: 05 May 2005 Posts: 190 Location: Wisconsin
|
Posted: Mon Feb 25, 2008 8:03 pm Post subject: |
|
|
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!
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! I hope this helps a little, or at leasts points you in the right direction! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BaNdit400 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2957663984ab8fdf1ae31b.jpg)
Joined: 23 Nov 2004 Posts: 93 Location: Italy, Paliano (FR)
|
Posted: Mon Feb 25, 2008 9:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
maldojr88 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Feb 2008 Posts: 53
|
Posted: Tue Feb 26, 2008 2:25 am Post subject: |
|
|
DPSHAK
!!!!!!!!!!!!!!!!!!!
YOu did it.....
THANK YOU
It worked!!!!!!!!!!!
FINALLY |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|