LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble connecting to the internet using Wifi (http://www.linuxquestions.org/questions/linux-newbie-8/trouble-connecting-to-the-internet-using-wifi-757532/)

lhorace 09-24-2009 12:15 PM

Trouble connecting to the internet using Wifi
 
Hi,

Start first with, I'm on Fedora 11 and my desktop is KDE. Fresh install, now I have been having trouble keeping consistent connection to the internet or webrowser would pause before initiated a connection to the web server. I contributed this problem to nm-applet because in the same location, using Fedora 10 previously and knetworkmanager, I had never had this problem. So I figured I would remove nm-applet and install knetworkmanager.

Code:

sudo yum install knetworkmanager
Well it installed kde-plasma-networkmanager instead, after further research, fedoraproject had decided to drop knetworkmanager in F11 for kde-plasma-networkmanager.

Then

Code:

sudo yum remove NetworkManager-gnome
I added the networkmanager to my KDE panel, tried to connect to a access point and got this

Code:

Sep 24 01:02:53 lutchy NetworkManager: <WARN>  connection_get_settings_cb(): connection_get_settings_cb: Invalid connection: 'NMSettingConnection' / 'id' invalid: 1
Sep 24 01:02:59 lutchy NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/3 failed to activate (timeout): (0) Connection was not provided by any settings service

Restarted NetworkManager, Network, and computer few times, didn't remedy the problem. rmmod and modprobe ath9k, still didn't remedy the problem.

I went to system-config-network, deselect manage by networkmanager. Went to wireless settings, specified access point 'linksys', set everything to auto... Went back to activated wireless device.

Got something like, Attempting to determine ip info...Failed, to that degree.

I tried

Code:

sudo iwconfig wlan0 essid 'linksys'
then

Code:

sudo iwconfig wlan0
It should have printed ESSID='linksys' and other info, well ESSID, magically disappeared.

I did

Code:

sudo iwlist wlan0 scan
Got my access point info, and address...

When I did a man iwconfig, it said you can force your wireless device to connect to access point by issuing this command...

Code:

sudo iwconfig wlan0 ap XXXXXXXXXXXXXXXX
Nothing happenes, so I issued this command

Code:

sudo iwconfig wlan0
and says it's not associated and since ESSID has disappeared, I cannot tell you if ESSID is set the right access point.

I have google'd how to manually connect to a access point through a command line and tried all suggestions and still no go.

I tried

Code:

ifup wlan0
after I issued the iwconfig command and it still failed. I know about wpa suppliant, but there should be a way to connect to a access point with out the need for wpa suppliant, especially when the access point is not encrypted. If there is an another utility to connect to a access point without the need for NetworkManager, knetworkmanager, nm-applet, I would appreciated if you let me know. Or another nm-applet equivalent.

And if someone could tell the proper procedures to connecting to a access point through a terminal. Would be helpful too...

trist007 09-24-2009 12:42 PM

Does your access point have security enabled like WEP, WPA, etc?

lhorace 09-24-2009 12:47 PM

No security, it's open network provided by the community. I can connect to the same access point through a live-cd.

trist007 09-24-2009 12:53 PM

Write down your essid and MAC address of your access point after doing

Code:

sudo iwlist wlan0 scan
then do the following

Code:

sudo iwconfig wlan0 essid <essid>
sudo iwconfig wlan0 ap <macaddress>
sudo dhclient wlan0


lhorace 09-24-2009 12:59 PM

should I put the essid or macaddress in quotes.

trist007 09-24-2009 01:00 PM

no u don't need to

lhorace 09-24-2009 01:02 PM

i'm on Fedora 12 alpha live-cd now, i'm going try with this version and see if it works...

lhorace 09-24-2009 01:19 PM

here's the output of

Code:

sudo iwlist wlan0 scan

Cell 06 - Address: 00:12:43:F1:AC:50                                 
                    Channel:1                                                 
                    Frequency:2.412 GHz (Channel 1)                           
                    Quality=12/70  Signal level=-98 dBm                       
                    Encryption key:off                                         
                    ESSID:"GIA"                                               
                    Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s       
                              18 Mb/s; 24 Mb/s; 36 Mb/s                       
                    Bit Rates:48 Mb/s; 54 Mb/s                                 
                    Mode:Master                                               
                    Extra:tsf=00000dcfb1161080                                 
                    Extra: Last beacon: 681ms ago                             
                    IE: Unknown: 0003474941                                   
                    IE: Unknown: 01088B0C129618243048                         
                    IE: Unknown: 030101                                       
                    IE: Unknown: 0706555320010B1A                             
                    IE: Unknown: 0B050100030000                               
                    IE: Unknown: 2A0100                                       
                    IE: Unknown: 3202606C                                     
                    IE: Unknown: 851E00008F000F00FF0359006F616B666C6B61637730322D3031000001000025                                                             
                    IE: Unknown: 9606004096001400                             
                    IE: Unknown: DD06004096010104                             
                    IE: Unknown: DD050040960305                               
                    IE: Unknown: DD050040960B09                               
                    IE: Unknown: DD050040961400                               
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00

this output

Code:

[root@localhost yum.repos.d]# sudo iwconfig wlan0 essid GIA
[root@localhost yum.repos.d]# sudo iwconfig wlan0 ap 00:12:43:F1:AC:50
[root@localhost yum.repos.d]# sudo dhclient wlan0
[root@localhost yum.repos.d]# sudo iwconfig wlan0
wlan0    IEEE 802.11bgn  Mode:Managed  Frequency:2.412 GHz
          Access Point: Not-Associated  Tx-Power=20 dBm
          Retry  long limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:on
          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

my log

Code:

Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  (wlan0): device state change: 5 -> 7 (reason 0)                                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Beginning DHCP transaction (timeout in 45 seconds)                                     
Sep 24 18:06:09 localhost NetworkManager: <info>  dhclient started with pid 2997                                                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP6 Configure Get) scheduled...                                         
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP6 Configure Get) started...                                           
Sep 24 18:06:09 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP6 Configure Get) complete.                                             
Sep 24 18:06:09 localhost dhclient: Internet Systems Consortium DHCP Client 4.1.0p1                                                                         
Sep 24 18:06:09 localhost dhclient: Copyright 2004-2009 Internet Systems Consortium.                                                                       
Sep 24 18:06:09 localhost dhclient: All rights reserved.                                                                                                   
Sep 24 18:06:09 localhost dhclient: For info, please visit http://www.isc.org/sw/dhcp/                                                                     
Sep 24 18:06:09 localhost dhclient:                                                                                                                         
Sep 24 18:06:09 localhost NetworkManager: <info>  DHCP: device wlan0 state changed normal exit -> preinit                                                   
Sep 24 18:06:09 localhost dhclient: Listening on LPF/wlan0/00:24:d2:32:38:c8                                                                               
Sep 24 18:06:09 localhost dhclient: Sending on  LPF/wlan0/00:24:d2:32:38:c8                                                                               
Sep 24 18:06:09 localhost dhclient: Sending on  Socket/fallback                                                                                           
Sep 24 18:06:10 localhost avahi-daemon[1196]: Registering new address record for fe80::224:d2ff:fe32:38c8 on wlan0.*.                                       
Sep 24 18:06:11 localhost dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67                                                                         
Sep 24 18:06:11 localhost dhclient: DHCPACK from 1.1.1.1                                                                                                   
Sep 24 18:06:11 localhost NetworkManager: <info>  DHCP: device wlan0 state changed preinit -> reboot                                                       
Sep 24 18:06:11 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) scheduled...                                         
Sep 24 18:06:11 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) started...                                           
Sep 24 18:06:11 localhost NetworkManager: <info>    address 10.110.7.98                                                                                     
Sep 24 18:06:11 localhost NetworkManager: <info>    prefix 22 (255.255.252.0)                                                                               
Sep 24 18:06:11 localhost NetworkManager: <info>    gateway 10.110.4.1                                                                                     
Sep 24 18:06:11 localhost NetworkManager: <info>    nameserver '128.147.248.8'
Sep 24 18:06:11 localhost NetworkManager: <info>    nameserver '128.147.248.7'
Sep 24 18:06:11 localhost NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Sep 24 18:06:11 localhost NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Sep 24 18:06:11 localhost NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Sep 24 18:06:11 localhost avahi-daemon[1196]: Joining mDNS multicast group on interface wlan0.IPv4 with address 10.110.7.98.
Sep 24 18:06:11 localhost avahi-daemon[1196]: New relevant interface wlan0.IPv4 for mDNS.
Sep 24 18:06:11 localhost avahi-daemon[1196]: Registering new address record for 10.110.7.98 on wlan0.IPv4.
Sep 24 18:06:11 localhost dhclient: bound to 10.110.7.98 -- renewal in 1791 seconds.
Sep 24 18:06:12 localhost NetworkManager: <info>  (wlan0): device state change: 7 -> 8 (reason 0)
Sep 24 18:06:12 localhost NetworkManager: <info>  Policy set 'Auto GIA' (wlan0) as default for routing and DNS.
Sep 24 18:06:12 localhost NetworkManager: <info>  Activation (wlan0) successful, device activated.
Sep 24 18:06:12 localhost NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Sep 24 18:06:22 localhost gnome-keyring-daemon[3058]: couldn't set environment variable in session: The name org.gnome.SessionManager was not provided by any .service files
Sep 24 18:06:32 localhost NetworkManager: <info>  (wlan0): device state change: 8 -> 3 (reason 38)
Sep 24 18:06:32 localhost NetworkManager: <info>  (wlan0): deactivating device (reason: 38).
Sep 24 18:06:32 localhost NetworkManager: <info>  (wlan0): canceled DHCP transaction, dhcp client pid 2997
Sep 24 18:06:32 localhost NetworkManager: <WARN>  check_one_route(): (wlan0) error -34 returned from rtnl_route_del(): Sucess#012
Sep 24 18:06:33 localhost avahi-daemon[1196]: Withdrawing address record for 10.110.7.98 on wlan0.
Sep 24 18:06:33 localhost avahi-daemon[1196]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 10.110.7.98.
Sep 24 18:06:33 localhost avahi-daemon[1196]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:06:33 localhost avahi-daemon[1196]: querier.c: querier_remove() called but no querier to remove.
Sep 24 18:09:37 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
Sep 24 18:09:43 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
Sep 24 18:09:58 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
Sep 24 18:10:15 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
Sep 24 18:10:36 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
Sep 24 18:10:38 localhost dhclient: No DHCPOFFERS received.
Sep 24 18:10:38 localhost dhclient: No working leases in persistent database - sleeping.

As you can see, ESSID went missing...

trist007 09-24-2009 01:31 PM

You're running as root so you don't have to include sudo in every command. You should disable network manager, don't need that and it's interfering with dhclient.

lhorace 09-24-2009 01:51 PM

i'm going to be heading in to work now... When I get home tonight.. I will disable networkmanager, and try again.... I know I didn't need sudo.

fib11235 09-24-2009 02:04 PM

I'm afraid your issue is driver. Show me what returns 'lspci' and what driver do you use (if you don't know show 'lsmod' return).


All times are GMT -5. The time now is 08:43 AM.