Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-04-2009, 03:42 AM
|
#16
|
Member
Registered: May 2004
Posts: 226
Rep:
|
I try this setting but the result of executing `ifup wlan0' shows
Code:
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
The wirelss configuration in /etc/network/interfaces is
Code:
allow-hotplug wlan0
ifcae wlan- inet dhcp
wirelss_essid TEST
wirelss_key s:password
Is this the correct setting parameters for WEP? I `man wirelss', it seems this is the correct format for setting wirelss.
I am sure the network works well because I can use other pc (windows) to surf the internet.
Also, previously my laptop works well in another wireless which configures using wpa and it worked well without a problem.
What is the correct setting for WEP? Or where can I obtain the working sample for WEP setting?
Thanks for help.
Quote:
Originally Posted by evo2
Simple example of /etc/network/interaces for wireless device called wlan0 and access point using WEP encryption.
Code:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
#wireless_key s:asciikey # Start with the "s:" if the key is ascii
wireless_key D05C0B1234 #
wireless_essid Foobar
wireless_mode managed
The line "auto wlan0" will ensure mean that the interace will come up automatically at boot.
You can manually bring it down with
and down with
NB. This is the way it's done in Debian, and therefore I assume Ubuntu.
HTH,
Evo2.
|
|
|
|
12-04-2009, 04:12 AM
|
#17
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by shogun1234
I try this setting but the result of executing `ifup wlan0' shows
Code:
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
|
That is extremly strange. I should output much more than that, even if it does fail.
Quote:
The wirelss configuration in /etc/network/interfaces is
Code:
allow-hotplug wlan0
ifcae wlan- inet dhcp
wirelss_essid TEST
wirelss_key s:password
Is this the correct setting parameters for WEP? I `man wirelss', it seems this is the correct format for setting wirelss.
|
It depends if the typos above are only in your post and not in your interfaces file. If what is really in your interfaces file is as below, then it should work for wep.
Code:
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_essid TEST
wireless_key s:password
Quote:
Also, previously my laptop works well in another wireless which configures using wpa and it worked well without a problem.
What is the correct setting for WEP? Or where can I obtain the working sample for WEP setting?
|
I'm pretty sure that what I posted is correct. There must be some other problem.
From your original post it seems that you are able to use some gui tool to get your wireless working. If so can you please post the output of the following for two cases
1. When the wireless is working: after bring it up with the gui
2. When it is not working: just after failing to bring it up on the command line.
Cheers,
Evo2.
Last edited by evo2; 12-04-2009 at 04:13 AM.
Reason: Typo
|
|
|
12-04-2009, 04:13 AM
|
#18
|
LQ Newbie
Registered: Jan 2005
Location: TN
Distribution: Fedora, Debian, Arch
Posts: 4
Rep:
|
I'm not sure if you typed or copy/pasted your network configuration, but in almost every case of "wireless" you're missing an 'e'. Start by correcting that if you did just copy it.
Since this thread has already been resurrected, cnetworkmanager is another option for users who are already using Network Manager on their systems. It's a command line interface to network manager of course, and fairly simple to use. Ex. cnetworkmanager -C my_ssid --wpa-pass=mypass
|
|
|
12-04-2009, 09:13 AM
|
#19
|
Member
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136
Rep:
|
To: tredegar
<Quote>nm-applet is rubbish</Quote>
There are people who wrote nm-applet, and with a honest motive of helping the Linux users. I think they deserve a better comment than the above.
We may not like a thing but we can be gentle with our criticism. I said this not because i think you are wrong, but beacause of the way you said it.
Regards.
|
|
|
12-04-2009, 11:53 AM
|
#20
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,971
|
Hi,
Quote:
Originally Posted by imagine_me2
To: tredegar
<Quote>nm-applet is rubbish</Quote>
There are people who wrote nm-applet, and with a honest motive of helping the Linux users. I think they deserve a better comment than the above.
We may not like a thing but we can be gentle with our criticism. I said this not because i think you are wrong, but beacause of the way you said it.
Regards.
|
From your perspective!
'PC' is 'BS'!
If something is a piece of crap it deserves noted as such. You can rub or spin any way you want but if the feelings or skin of the software programmer is that thin then I suggest they get out.
When the kettle is Black, it can be hot too. Touching it will make you aware of one but not the other.
|
|
|
12-05-2009, 06:52 PM
|
#21
|
Member
Registered: May 2004
Posts: 226
Rep:
|
env: kernel 2.6.31/ gcc 4.3.4/ make 3.81/ debian unstable
I double check the related setting again. It looks correct to me, but I think there should have something missing and I am not aware of it. They are follow:
Firmware located at /lib/firmware contains
Code:
iwlwifi-4965-2.ucode
The result of lsmod | grep iwlagn
Code:
iwlagn 73340 0
iwlcore 95716 1 iwlagn
mac80211 124608 2 iwlagn, iwlcore
cfg80211 76636 3 iwlagn, iwlcore, mac80211
led_class 3868 3 iwlcore, hp_accel, sdhci
I can not find any kernel module with `lsmod | grep 4965`, which is the module detected in the past. I also read on the internet saying that iwl4965 is iwlagn in fact, as follow:
Code:
http://ubuntuforums.org/showthread.php?t=902652&page=2
http://article.gmane.org/gmane.linux.drivers.ipw3945.devel/3398
The syslog shows
Code:
iwlagn: Intel(R) Wireless Wifi Link AGN driver for Linux, 1.3.27ks
iwlagn: Copyright(c) 2003-2009 Intel Corporation
iwlagn: 0000:10:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
iwlagn: 0000:10:00.0: setting latency timer to 64
iwlagn: 0000:10:00.0: Detected Intel Wireless WiFi Link 4965AGN REV=0x4
...
iwlagn 0000:10:00.0: firmware: requesting iwlwifi-4965-2.ucode
iwlagn 0000:10:00.0: loaded firmware version 228.57.2.21
Registered led device: iwl-phy0::radio
Registered led device: iwl-phy0::assoc
Registered led device: iwl-phy0::RX
Registered led device: iwl-phy0::TX
ADDRCONF(NETDEV_UP): wlan0: link is not ready
It looks like the firmware is loaded, but I do not know why the link is not ready.
The iwconfig reault
Code:
wlan0 IEEEE 802.11abgn ESSID:"TEST"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry long limit: 7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management: off
Link Quality:0 Signal level: 0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx execessive retries:0 Invalid misc: 0 Missed beacon:0
The interfaces configuration
Code:
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_essid TEST
wireless_key s:password
auto wlan0
Does these look correct?
Thanks for the help.
I appreciate it.
Quote:
Originally Posted by evo2
That is extremly strange. I should output much more than that, even if it does fail.
It depends if the typos above are only in your post and not in your interfaces file. If what is really in your interfaces file is as below, then it should work for wep.
Code:
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_essid TEST
wireless_key s:password
I'm pretty sure that what I posted is correct. There must be some other problem.
From your original post it seems that you are able to use some gui tool to get your wireless working. If so can you please post the output of the following for two cases
1. When the wireless is working: after bring it up with the gui
2. When it is not working: just after failing to bring it up on the command line.
Cheers,
Evo2.
|
Last edited by shogun1234; 12-05-2009 at 06:59 PM.
|
|
|
12-06-2009, 02:35 AM
|
#22
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
To help you I need you to follow instructions.
From my last post:
Quote:
From your original post it seems that you are able to use some gui tool to get your wireless working. If so can you please post the output of the following for two cases
Code:
1. When the wireless is working: after bring it up with the gui
2. When it is not working: just after failing to bring it up on the command line.
|
It seems you did one of the above, but not both. I need to compare the output in the two situations. It is also important that you run the command as root otherwise I will not be able to see it the key was set properly.
Quote:
The interfaces configuration
Code:
Code:
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_essid TEST
wireless_key s:password
auto wlan0
|
Please remove the line with "auto wlan0"
Evo2.
|
|
|
All times are GMT -5. The time now is 12:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|