My Ubuntu Doesnt Connect Automatically to my Wireless Network how can i resolve this?? ANY HELP

Asked by UbuntuAma

When i started my computer my Belkin 54g can detect all network available on Range but cannot detect my own wireless network, i have tried to create it everytime i log-in and it seems now it wont work?? how can i make it auto-connect to my network without me re-create it everytime???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
10111
Solved:
Last query:
Last reply:
Revision history for this message
10111 (joachim-neu) said :
#1

Hello.

If other clients "see" wireless networks depends on the configuration of the hotspot. If the hotspot is configured to broadcast his name, other clients can "see" this network. They know it exists, they list it and users can see it.
If the hotspot is configured not to broadcast his name (called (E)SSID), it's in a kind of stealth-mode. Other clients don't know the name of the network, they often don't even know that it exists. But if you know this (E)SSID you can tell your computer to use it and he will do so.

So: If your hotspot is configured not to broadcast his address, you can also use him by configuring the networking manually (click onto the icon in the upper right notification area) and then tell him to use a special network on the given wifi-interface (untick the roaming-mode!).

Marry Christmas!

10111

Revision history for this message
UbuntuAma (ama-bone) said :
#2

OK i have removed the ROAMING MODE, however my issue is when ever i restart my PC i cannot AUTOMATICALLY connect to my WIRELESS network i need to re-create the connection everytime and mostly when i re-create it wont connect keeps on coming back to ask me for WEP KEY which i put the right key and sometimes it works sometimes it doesnt, what can i do to resolve this isssue i do luv Ubuntu very much
Please HELP as i dont wanna give up using Ubuntu

Revision history for this message
10111 (joachim-neu) said :
#3

Hello,

You can set up the wireless connection manually by rewriting the file /etc/network/interfaces.
Just replace in the following block the values in brackets and append it to the existing file. If there's already a configuration for your interface, delete it out comment it out (put a # in front of every line).

# WLAN
allow-hotplug [interface]
auto [interface]
iface [interface] inet dhcp
        wireless-essid [essid]
        wireless-key [wep key in hex]

If it doesn't work after reboot, please post your /etc/network/interfaces here and we'll try to fix it.

Thank you and Marry Christmas!

Revision history for this message
UbuntuAma (ama-bone) said :
#4

I still have the same problem, and as i'm not very gud in Ubuntu how will i get to capture the screen shot of my command lines i have wrote? the lines u gave me before i had run them in terminal ALT+F2 and the result just pop and disapear very quick
any more help i do appriciate your help
Thanks need more help

Revision history for this message
10111 (joachim-neu) said :
#5

Hello,

Please start an editor (for example "gedit") and open the file /etc/network/interfaces.
Put ALL the content of the file here! If there's any wep-key or something like that inside, blur it out with stars!

Merry Christmas!

Revision history for this message
UbuntuAma (ama-bone) said :
#6

Thanks for your help
The below lines is what i could gethered from my network hope you can see and tell whats wrong

auto lo
iface lo inet loopback

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

auto wlan0
#iface wlan0 inet dhcp

Revision history for this message
UbuntuAma (ama-bone) said :
#7

i couldnt see any WEP key if you require it i can send it as requested

Revision history for this message
10111 (joachim-neu) said :
#8

Hello.

Now open a terminal and write:
gksu gedit /etc/network/interfaces

Replace the content of the file with the following:

# The loopback network interface
auto lo
iface lo inet loopback

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

# WLAN
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
 wireless-essid [replace this with your network name!]
 wireless-key [replace this with your wep key (hex!)]

Attention: Replace the brackets with the needed values!

Then try to reboot and see if it works. Post your results here.

Revision history for this message
UbuntuAma (ama-bone) said :
#9

Hello, i have try to go on terminal as you said and post the lines u gave me and replace everything as per my settings however i couldnt see the SAVE button i wonder if im suppose to save after all lines are in place how do i go about it, sorry for been silly wanna make this one work
and DO i leave the network name and Wep Key inside the bracket or remove the brackets??

Revision history for this message
UbuntuAma (ama-bone) said :
#10

Helloo i have checked on etc/network/interfaces looks like the file have saved however i still cannt auto-connect to my wireless network, wonder where i went wrong
the lines i have entered are these

# The loopback network interface
auto lo
iface lo inet loopback
auto eth1
#iface eth1 inet dhcp
auto eth2
#iface eth2 inet dhcp
auto ath0
#iface ath0 inet dhcp
# WLAN
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
 wireless-essid [Majirani]
 wireless-key [f2d6200dd9]

You will notice from above lines i have ADDED LINE: "auto eth1
#iface eth1 inet dhcp" which appears to be on my interfaces

Need more help sorry

Revision history for this message
UbuntuAma (ama-bone) said :
#11

i have tried to go for this line: sudo /etc/init.d/networking restart then the output was these following lines: [sudo] password for amadeus:
 * Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth1.pid with pid 6216
killed old client process, removed PID file
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/

Listening on LPF/eth1/00:17:3f:b0:c0:76
Sending on LPF/eth1/00:17:3f:b0:c0:76
Sending on Socket/fallback
DHCPRELEASE on eth1 to 192.168.2.1 port 67
Ignoring unknown interface eth2=eth2.
Ignoring unknown interface ath0=ath0.
wlan0: ERROR while getting interface flags: No such device
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "[f2d6200dd9]".
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; No such device.
There is already a pid file /var/run/dhclient.wlan0.pid with pid 134519120
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/

SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan0.
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519120
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/

Listening on LPF/eth0/00:1a:a0:43:e1:21
Sending on LPF/eth0/00:1a:a0:43:e1:21
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
There is already a pid file /var/run/dhclient.eth1.pid with pid 134519120
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/

Listening on LPF/eth1/00:17:3f:b0:c0:76
Sending on LPF/eth1/00:17:3f:b0:c0:76
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
^ADHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14

Revision history for this message
10111 (joachim-neu) said :
#12

You have to delete the brackets "[" from the file!

Revision history for this message
UbuntuAma (ama-bone) said :
#13

I did so but no joys sorry for been a pain but it doesnt work

Revision history for this message
10111 (joachim-neu) said :
#14

Please post again your changed /etc/network/interfaces here.

Revision history for this message
UbuntuAma (ama-bone) said :
#15

Hello this is what shows from /etc/network/interfaces, anything i should do more??
Thanks

auto lo
iface lo inet loopback

auto eth2
#iface eth2 inet dhcp
auto ath0
#iface ath0 inet dhcp
# WLAN
allow-hotplug eth1
iface eth0 inet dhcp

auto eth0

Revision history for this message
UbuntuAma (ama-bone) said :
#16

I have checked on /etc/network/interfaces and below is the contents displayed, however my computer now keep coming back to ask for WEP-Key which i have tried to enter and it wont work keep on asking for it again and again
any help??
Thanks again

# The loopback network interface
auto lo
iface lo inet loopback
auto eth1
#iface eth1 inet dhcp
#wlan
allow-hotplug wlan1
iface wlan1 inet dhcp
auto eth2
#iface eth2 inet dhcp
auto eth0
#iface eth0 inet dhcp
# WLAN
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
 wireless-essid majirani
 wireless-key f2d6200dd9

Revision history for this message
10111 (joachim-neu) said :
#17

Okay. Please connect to the wireless and give me the output of the following terminal-commands:
cat /proc/net/wireless
ifconfig

Thank you!

Revision history for this message
UbuntuAma (ama-bone) said :
#18

I have tried that on terminal as sudo cat/proc/net/wireless ifconfig and it wouldnt run or the output window just disapear so quick
what can i do

Revision history for this message
10111 (joachim-neu) said :
#19

Without sudo and this are 2 seperated commands. Take care of the spaces!

Revision history for this message
UbuntuAma (ama-bone) said :
#20

I have done it on terminal and this is what came up
amadeus@amadeus:~$ cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed | WE
 face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
  eth1: 0000 0 0 0 0 0 0 0 0 0
amadeus@amadeus:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1A:A0:43:E1:21
          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:16

eth1 Link encap:Ethernet HWaddr 00:17:3F:B0:C0:76
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:486 dropped:1 overruns:1 frame:484
          TX packets:396 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b) TX bytes:17864 (17.4 KB)

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:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2420 (2.3 KB) TX bytes:2420 (2.3 KB)

Revision history for this message
UbuntuAma (ama-bone) said :
#21

As u might notice on eth1 packets are sent 396 and received 0 and errors 486

Revision history for this message
Best 10111 (joachim-neu) said :
#22

Okay. Then please change your /etc/network/interfaces to the following:

auto lo
iface lo inet loopback

auto eth0

allow-hotplug eth1
auto eth1
iface eth1 inet dhcp
 wireless-essid majirani
 wireless-key f2d6200dd9

auto eth2

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
 wireless-essid majirani
 wireless-key f2d6200dd9

allow-hotplug wlan1
auto wlan1
iface wlan1 inet dhcp
 wireless-essid majirani
 wireless-key f2d6200dd9

Revision history for this message
UbuntuAma (ama-bone) said :
#23

Hello, i have changed my etc/network/interfces to the above lines still no gud news, but i need to know one thing what are setting on my eth1 shall i TICK ROAMING MODE? or give out the network Name and let it be ASSIGNED by DHCP?

Revision history for this message
10111 (joachim-neu) said :
#24

No, untick Roaming Mode. Give the network name and let the address be assigned by dhcp.
Do you know how to deal with IRC? If so, please come to #question20490 on irc.ubuntu.com. I'll be waiting there and we can talk about the issue.

Revision history for this message
UbuntuAma (ama-bone) said :
#25

I dont really know IRC's and how will i go to that question number i'm trying to open irc.ubuntu.com is it a chatting? could you log into Yahoo Messenger or MSN??

Revision history for this message
10111 (joachim-neu) said :
#26
Revision history for this message
UbuntuAma (ama-bone) said :
#27

couldnt get anything to help me think i'll have to re-install the whole ubuntu

Revision history for this message
UbuntuAma (ama-bone) said :
#28

Thanks 10111, that solved my question.

Revision history for this message
pogacsa (zoltan-levardy) said :
#29

hi 10111 - i hope you will have some useful hints for me.

Trying to use ubuntu 8.04 on a thinkpad z61m with intel pro 3945 wireless adaptor. LiveCD was working brilliant, and therefore i have installed over my opensuse, ubuntu is very nice in many ways, but internet connection really making headaches for me.
After installation, i have simply entered SSID and WPA passphare and voila, but problems were coming after rebooting. Now i have to do the next steps to get wireless working:
 - click on nm-applet, and edit wireless, and enter admin-password
 - open system/ admin/ network and unlock with admin-password
 - need to enter the wireless-passphare again.
 - open terminal: sudo gedit /etc/network/interfaces, and change: wpa-ap-scan 1 to wpa-ap-scan 2
 - try reset network by: sudo /etc/init.d/neworking restart
 - edit interfaces again, by gedit /etc/network/interfaces, and change back: wpa-ap-scan 2 to wpa-ap-scan 1
 - and luanch network by: sudo /etc/init.d/neworking restart

any idea is this a wireless or keyring or ... issue? The wireless is HIDDEN (wpa-ap-scan 2), but only connects by 1.

thanks a lot!

my interfaces:
###LOCAL LOOPBACK
auto lo
iface lo inet loopback

###WLAN, see: http://ubuntuforums.org/showthread.php?t=318539
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
 wpa-ap-scan 1 # 1-broadcase, 2-hidden SSID
 wpa-pairwise TKIP # TKIP = wpa1, CCMP=wpa2
 wpa-group TKIP
 wpa-psk 5a6e0ec********** # in hex format
 wpa-driver wext
 wpa-key-mgmt WPA-PSK
 wpa-proto WPA
 wpa-ssid cgm**********

Revision history for this message
10111 (joachim-neu) said :
#30

Hello pogacsa,

Please open a new question, then other people will also read it and try to answer it.

Can you post the /etc/network/interfaces that works?

with kind regards,

10111

Revision history for this message
Dahc (chadericdowney) said :
#31

 WRK54G with the WUSB54G v4 adapter

Hope this helps someone with a linksys router and usb interface. After reading this thread I tried the following and it is working perfect. :) However, this is not very intuitive and if Ubuntu is to prevail in the MS world we live in right now we need something easier for the user to solve this type of problem. It took me a few days to find this thread and too many hours to figure out. I suggest popup that gives you current connectivity lan or wan. I had a connection to my router so I was able to figure out that I needed to tell the stupid interface the gateway and nameservers below. Look my wife a Ph.D and my mom, brother have Masters Degrees so they aren't dumb. The point is most people won't do this research or know what to do once they even find the answer. Either the installation needs to be better or better detection of usb or network cards in general. Wireless is very popular and so Ubuntu and other distributions need to be more savvy to compete with Microbloat. My router is a WRK54G with the WUSB54G v4 adapter. Works fantastic now but my linux skills helped me navigate around just enough to get it working. Not good for the average windows user that wants to convert to less costly work horse like linux.

auto lo
iface lo inet loopback
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
gateway 192.168.1.1
dns-nameservers 192.168.1.1
wireless-essid (name of your network without the parenthesis)
wireless-key (the key you generated from the router without the parenthesis)

Revision history for this message
lwp (z456-789) said :
#32

I tried the solution suggested in the following post and it did solve my hidden wireless connection problem. The computer is a HP laptop model dv7-2180us.