LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-28-2008, 12:20 PM   #1
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Rep: Reputation: 30
wireless setttings problem


hi i am a sort of new to linux and installed 7.10 ubuntu.windows xp being another os. the problem is my settings work well in windows and i access net.but in ubuntu i an unable to set it.any commands to help me check and rcctify the problem are requested.my wireless card is iwl4965...
 
Old 08-28-2008, 01:03 PM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Quote:
lspci
Lists the hardware connected to the PCI bus. You can know the exact chipset of your card there (in case the driver is not the good one).
Quote:
modprobe driver
loads the 'driver' driver into the kernel so the system can use it.
Quote:
iwconfig
lists netword cards and tell you which one are wireless. Handy to find the name of the device of your card (for instance wlan0).
Quote:
iwlist wlan0 scan
lists the access points the wlan0 card has detected
Quote:
man command
Gives you a lot of informations abour the command (iwlist, iwconfig, modprobe, lspci or anything)
Quote:
iwevents wlan0
prints events that happen in wlan0
Quote:
sudo iwconfig wlan0 essid "MYSSID"
connects wlan0 to the MYSSID network
Quote:
sudo dhclient wlan0
gets an ip address from a DHCP server for wlan0
Quote:
ifconfig wlan0
prints the network informations related to wlan0, including IP address
Quote:
ping linuxquestions.org
checks that the connection with linuxquestions.org works and print delay between send and receive.
control-C stops the ping.
Quote:
cat /etc/resolv.conf
prints the DNS informations

Last edited by Agrouf; 08-28-2008 at 01:07 PM.
 
Old 09-01-2008, 10:39 PM   #3
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
hi

thanks for the help....but when i typed the command scan wlan0 i got no scan results...what does that mean...also i am unable to sustain the signal after some time even if the router is just beside....i have to restart it all over...any suggestions????????
 
Old 09-02-2008, 03:22 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
try
Quote:
dmesg
prints kernel messages (handy to see errors that happen in drivers).
 
Old 09-03-2008, 01:42 PM   #5
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
hi

thanks but is automatic disabling a default phenomenon????if yes are there settings to prevent it????
 
Old 09-03-2008, 03:46 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

From the cli do a 'iwlist wlan0 scanning' to see what is broadcasting. You can 'man iwlist' to learn more.
 
Old 09-04-2008, 03:17 AM   #7
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Quote:
Originally Posted by raphtor View Post
thanks but is automatic disabling a default phenomenon????if yes are there settings to prevent it????
In short, no.
It doesn't disable your network automatically, unless there is something really wrong with your distro. It is most probable that your driver just crashes (see dmesg). Maybe you have the wrong driver for your card or it is an old driver that has been fixed since then, or it is just not mature enough and need some work, or maybe there are workarounds for your problem. Just post the output of dmesg (the last lines after your connection has been cut) and maybe we can see what happened to your network.
Also try the iwevents command to see if your card is still scanning after your connection is lost.
 
Old 09-11-2008, 05:52 PM   #8
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
thanks

sorry for being inactive for a while.i am unable to understand the output of the terminal.also my DNS,ip and other things are automatically being rese to zero while working.i have to restart it again.any help????
 
Old 09-12-2008, 06:29 AM   #9
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It doesn't matter if you don't understand the output of dmesg. Can you please post it here (the 20 last lines, not the whole stuff)? Some people are able to understand it over here and to explain it to you. Save it to a file, reboot and post it here when your connection is back. Can't help without knowing what's wrong. The connection can be cut for too many different causes.

Last edited by Agrouf; 09-12-2008 at 06:33 AM.
 
Old 09-12-2008, 05:36 PM   #10
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
result

hi i was disconnected whike workin now...i am posting the outputs of dmesg and other commands u asked for


abhinav@RapHToR:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
03:01.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
03:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
0c:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
abhinav@RapHToR:~$ modprobe driver
FATAL: Module driver not found.
abhinav@RapHToR:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Retry min limit:7 RTS thrff Fragment thr=2346 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

abhinav@RapHToR:~$ iwlist wlan0 scan
wlan0 No scan results

abhinav@RapHToR:~$ iwevents wlano
bash: iwevents: command not found
abhinav@RapHToR:~$ iwevents wlan0
bash: iwevents: command not found
abhinav@RapHToR:~$ sudo dhclient wlan0
[sudo] password for abhinav:
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:1f:3b:63:8c:b3
Sending on LPF/wlan0/00:1f:3b:63:8c:b3
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
abhinav@RapHToR:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:1F:3B:63:8C:B3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14797 errors:0 dropped:0 overruns:0 frame:0
TX packets:11018 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10802141 (10.3 MB) TX bytes:3215354 (3.0 MB)

abhinav@RapHToR:~$ ping linuxquestions.org

abhinav@RapHToR:~$ cat/etc/resolv.conf
bash: cat/etc/resolv.conf: No such file or directory





OUTPUT FOR dmesg:LAST LINES:
Pv6 routers present
[ 100.540000] wlan0: no IPv6 routers present
[ 1262.432000] usb 5-1: USB disconnect, address 2
[ 1342.740000] usb 5-1: new low speed USB device using uhci_hcd and address 3
[ 1342.908000] usb 5-1: configuration #1 chosen from 1 choice
[ 1342.924000] input: USB Optical Mouse as /class/input/input8
[ 1342.924000] input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:00:1d.0-1
[ 1675.456000] wlan0: TKIP decrypt failed for RX frame from 00:1a:e8:11:9e:79 (res=-3)
[ 1841.764000] wlan0: RX disassociation from 00:1a:e8:11:9e:79 (reason=8)
[ 1841.764000] wlan0: disassociated
[ 1841.764000] wlan0: RX deauthentication from 00:1a:e8:11:9e:79 (reason=3)
[ 1841.764000] wlan0: deauthenticated
[ 1842.764000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1842.764000] wlan0: RX authentication from 00:1a:e8:11:9e:79 (alg=0 transaction=2 status=0)
[ 1842.764000] wlan0: authenticated
[ 1842.764000] wlan0: associate with AP 00:1a:e8:11:9e:79
[ 1842.768000] wlan0: RX ReassocResp from 00:1a:e8:11:9e:79 (capab=0x411 status=0 aid=1)
[ 1842.768000] wlan0: associated
[ 1842.772000] iwl4965: TX Power requested while scanning!
[ 1842.772000] iwl4965: Error setting Tx power (-11).
[ 1842.772000] iwl4965: TX Power requested while scanning!
[ 1842.772000] iwl4965: Error setting Tx power (-11).
[ 1843.168000] wlan0: RX deauthentication from 00:1a:e8:11:9e:79 (reason=1)
[ 1843.168000] wlan0: deauthenticated
[ 1844.168000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1844.368000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1844.568000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1844.768000] wlan0: authentication with AP 00:1a:e8:11:9e:79 timed out
[ 1844.832000] iwl4965: Microcode SW error detected. Restarting 0x82000000.
[ 1844.832000] wlan0: failed to restore operationalchannel after scan
[ 1847.368000] iwl4965: Error sending REPLY_ADD_STA: time out after 500ms.
[ 1847.868000] iwl4965: Error sending REPLY_TX_LINK_QUALITY_CMD: time out after 500ms.
[ 1848.368000] iwl4965: Error sending REPLY_TX_PWR_TABLE_CMD: time out after 500ms.
[ 1848.368000] wlan0: Initial auth_alg=0
[ 1848.368000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1848.368000] wlan0: Initial auth_alg=0
[ 1848.368000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1848.368000] wlan0: Initial auth_alg=0
[ 1848.368000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1848.380000] iwl4965: Microcode SW error detected. Restarting 0x82000000.
[ 1848.568000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1848.816000] wlan0: authenticate with AP 00:1a:e8:11:9e:79
[ 1848.880000] iwl4965: Error sending REPLY_BT_CONFIG: time out after 500ms.
[ 1849.016000] wlan0: authentication with AP 00:1a:e8:11:9e:79 timed out
[ 1849.396000] iwl4965: Error sending REPLY_RXON: time out after 500ms.
[ 1849.396000] iwl4965: Error setting new configuration (-110).
[ 1849.896000] iwl4965: Error sending REPLY_CT_KILL_CONFIG_CMD: time out after 500ms.
[ 1849.896000] iwl4965: REPLY_CT_KILL_CONFIG_CMD failed
[ 1850.396000] iwl4965: Error sending REPLY_RXON: time out after 500ms.
[ 1850.396000] iwl4965: Error setting new configuration (-110).
[ 1850.896000] iwl4965: Error sending REPLY_ADD_STA: time out after 500ms.
[ 1851.396000] iwl4965: Error sending REPLY_TX_LINK_QUALITY_CMD: time out after 500ms.
[ 1872.116000] wlan0: RX WEP frame with unknown keyidx 1 (A1=ff:ff:ff:ff:ff:ff A2=00:1a:e8:11:9e:79 A3=00:1f:e1:3c:46:41)
 
Old 09-12-2008, 08:53 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

It would be a lot easier for everyone if you place the output in the vbcode tags '#' for data and quote for quotes.
 
Old 09-14-2008, 04:16 PM   #12
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
whats vb code

can u b bit more specific.i dont understand vb code and stuff
 
Old 09-15-2008, 10:43 AM   #13
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It looks like that:
https://bugs.launchpad.net/linux/+bug/200509
It looks like this bug is fixed upstream in kernel 2.6.25
If so, you have 3 solutions:
* Download compile and install kernel 2.6.25 (or later). Takes a little time but you'll learn a lot.
* Wait for intrepid ibex and upgrade (should be available in october), as it will have a newer kernel. Easy to do, but you have to wait.
* Upgrade to intrepid ibex alpha - Note you may run into some other problems as this is not stable software but this will fix your connection problem. I don't advise it if you have important data and/or don't know what it implies.

Anyway, if you leave your system like that, you don't have to reboot to get the connection back. Just remove and reinsert the driver.
sudo rmmod iwl4965
sudo modprobe iwl4965

Last edited by Agrouf; 09-15-2008 at 10:50 AM.
 
Old 09-15-2008, 05:47 PM   #14
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Original Poster
Rep: Reputation: 30
thanks

today i faced a new problem.when i booted the system,it asked me for wireless authentication.when i gave the password all the dns address were reset to 0.and i lost all the signal (0%).is there anything u can help about this.also can u guide me about that bug u were referring to??i have a very slow download wireless connection...
 
Old 09-16-2008, 01:42 AM   #15
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Did you connect to the right access point?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CentOS 5.2 wireless problem with Intel 4965 AGN wireless : SIOCGIFFLAGS error: No suc centguy Linux - Wireless Networking 2 08-12-2008 04:21 AM
Ubuntu 7.10 wireless problem with M2N32-SLI DELUXE WIRELESS EDITION Maniai Linux - Newbie 2 03-10-2008 09:18 AM
wireless internet problem and DVD drive problem Legion Linux - Hardware 2 08-28-2006 10:09 PM
Changing screen setttings eggoz Linux - Laptop and Netbook 1 06-21-2004 08:59 AM


All times are GMT -5. The time now is 10:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration