PDA

View Full Version : strange wifi, setting getting lost


gary4gar
08-01-2008, 07:48 PM
i using wifi but still there is no wlan0 connection. also the settings are getting lost like the network passowrd & WPA type. which i have to setup everytime i boot up, and settings get reset after reboot

:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:B0:D4:BE:FB
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:22 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:1B:77:4E:7A:AE
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:77ff:fe4e:7aae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4817 errors:2 dropped:176 overruns:0 frame:0
TX packets:4595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4968053 (4.7 MB) TX bytes:973934 (951.1 KB)
Interrupt:16 Base address:0x8000 Memory:d0000000-d0000fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:478 errors:0 dropped:0 overruns:0 frame:0
TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44692 (43.6 KB) TX bytes:44692 (43.6 KB)





p:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
05:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
05:06.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 01)
05:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
05:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
deepak@deepak-laptop:~$

praka123
08-01-2008, 08:08 PM
^the file which u need to have the wireless connection listed is /etc/network/interfaces .read "man interfaces" for more info.also,network-admin will be writing the config to this file for saving.so,while wireless is active,try System>admin>network to have ur config saved :)

gary4gar
08-01-2008, 08:13 PM
:|
~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback


iface eth1 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
wpa-psk be196908f45ff6f6955d935036eb8dfd8f7ff74476ef2d3ea7 7ec9cc77f9389e
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid GaurishNET



auto eth1

praka123
08-01-2008, 08:19 PM
no idea reg how to add wlan0 :? but a "auto wlan0"(dont do now!) with the respective options are the soltn.google for this.
if u have network-manager-gnome installed,it is supposed to auto-detect enable ur network devices!yes,do u have network-manager-gnome?else wait for someone with wireless network reply :)

during the time,look:
http://www.researchut.com/blog/archive/2007/05/30/NetworkManager_Debian_Network_

http://ubuntuforums.org/showthread.php?t=329220

infra_red_dude
08-01-2008, 11:23 PM
From the interfaces file it looks that your Wifi card is eth1 and not wlan0. Which software do you use to manage the network? Network Manager?

I've had not-so-pleasant experiences with Network Manager, hence I use WICD. You may wanna try it out. Read here: http://www.thinkdigit.com/forum/showthread.php?t=64555

mehulved
09-01-2008, 12:14 AM
why do you want it to be called as wlan? Any special reasons?
Intel wireless cards are detected as eth only.

apacheman
09-01-2008, 03:09 AM
wifi or wlan same thing

NucleusKore
09-01-2008, 07:49 AM
why do you want it to be called as wlan? Any special reasons?
Intel wireless cards are detected as eth only.

Yes, my broadcom wireless was detected as eth when using it with ndiswrapper

gary4gar
09-01-2008, 10:44 AM
Even with all settings given the wifi link goes down on its automatically.
sometimes the network key gets erased, sometimes the WPA type is set to WPA personnel from WPA2 personnel. sometimes the default route get sets to eth0 instead of eth1.

right now there is no fixed procedure to get the netowork up, sometimes i need to add the values & default route, some time restarting networking help, sometimes the wifi does not come up at all no matter how hard i try:x

mediator
09-01-2008, 11:30 AM
I suppose u r using Ubuntu.
* Remove any entries that u might be havin in keyring.
* Try reinstalling the packages namely => wpasupplicant, network-manager-gnome, network-manager
* and then follow this guide (http://www.debianadmin.com/enable-wpa-wireless-access-point-in-ubuntu-linux.html).

Neways r u on Gutsy?

infra_red_dude
09-01-2008, 12:05 PM
Did you try WICD?

gary4gar
09-01-2008, 12:58 PM
yes i am using gutsy.
i even tried, making my network open(without any key), still it does not work:(

mediator
09-01-2008, 01:05 PM
Hmmm, Gutsy supports out-of-box wireless. So it can possibly be a bug also. Try updating ur system!

Also it just clicked that u shud remove the eth1 entry from there i.e /etc/network/interfaces, clean the keyring and try again. It will ask for WPA-PSK pass!!

gary4gar
09-01-2008, 08:36 PM
how clear the keyring?

praka123
09-01-2008, 08:49 PM
what is ur ifconfig o/p when wifi is activated?
did u tried getting connxn up manually in new ubuntu session?
sudo ifconfig eth1 up
https://help.ubuntu.com/community/WifiDocs/WPAHowTo

https://help.ubuntu.com/community/WifiDocs/

gary4gar
09-01-2008, 09:03 PM
its a known bug
#41134: Does not store WPA-Enterprise password in keyring (https://bugs.launchpad.net/bugs/41134)

praka123
09-01-2008, 09:43 PM
^ATM,the fix is explained here if u use network-manager-gnome:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/41134/comments/22
http://ppa.launchpad.net/andrewjorgensen/ubuntu/pool/main/n/network-manager-applet/network-manager-gnome_0.6.5-0ubuntu11~andrewjorgensen0_i386.deb

gary4gar
10-01-2008, 02:55 PM
Thanks prakash, will try this & report back shortly:)