wifi setting

Asked by pingsum

I am installing a D-link DWL-G122 USB adapter on 7.01. I can see a number of neighbouring AP from the network applet but I just can't log in to any of them including our own AP... regardless of what I had done, including adding wireless-mode Managed, wireless-channel 9....etc in the /etc/network/interfaces. I am using WEP 128 bit ! Anybody can help please ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Massimo Forti (slackwarelife) said :
#1

Thanks for your question, before we try to resolve your problem I want to know if you are using NM applet and if you can post your /etc/network/interfaces.

Thanks

Revision history for this message
pingsum (pingsum) said :
#2

Hi Massimo,

Thank you very much for your quick response. Here is the setting and the
output of iwconfig and ifconfig command.

sum@Nighthawk:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:F1:D3:83:EF
          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)

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:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)

wlan0 Link encap:Ethernet HWaddr 00:19:5B:78:00:85
          inet6 addr: fe80::219:5bff:fe78:85/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:1956 (1.9 KiB)

wlan0:ava Link encap:Ethernet HWaddr 00:19:5B:78:00:85
          inet addr:169.254.4.209 Bcast:169.254.255.255 Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

wmaster0 Link encap:UNSPEC HWaddr
00-19-5B-78-00-85-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING 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)

sum@Nighthawk:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.452 GHz
          RTS thr:off Fragment thr=2346 B

wlan0 IEEE 802.11g ESSID:"BlackHawk"
          Mode:Managed Frequency:2.452 GHz Access Point: 00:18:39:3B:A9:00

          RTS thr:off 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

sum@Nighthawk:~$ sudo iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wmaster0 Interface doesn't support scanning : Operation not supported

wlan0 No scan results

sum@Nighthawk:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface wlan0 inet dhcp
wireless-essid BlackHawk
wireless-key E67DC10E604A62F9AC9B69F151
wireless-channel 9
iwconfig wlan0 ap 00:18:39:3B:A9:00

auto wlan0

iface wmaster0 inet dhcp
wireless-essid BlackHawk
wireless-key E67DC10E604A62F9AC9B69F151

auto wmaster0

Best regards
Sum

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Massimo Forti
Sent: Monday, May 07, 2007 6:25 AM
To: <email address hidden>
Subject: Re: [Question #6172]: wifi setting

Your question #6172 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/6172

    Status: Open => Answered

Massimo Forti proposed the following answer:
Thanks for your question, before we try to resolve your problem I want
to know if you are using NM applet and if you can post your
/etc/network/interfaces.

Thanks

_______________________________________________________________________
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/6172/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/6172

Revision history for this message
Massimo Forti (slackwarelife) said :
#3

iface wlan0 inet dhcp
wireless-essid BlackHawk
wireless-key E67DC10E604A62F9AC9B69F151
wireless-channel 9
iwconfig wlan0 ap 00:18:39:3B:A9:00

Your /etc/network/intefaces force to use this Wi-Fi network (SSID = BlackHawk). If you want be able to change the SSID using NM you must change this in intefaces file:

#/etc/network/interaces
auto lo
iface lo inet loopback

#iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

#auto wlan0

#iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

#auto wmaster0

After you must enable roaming mode in the Ubuntu network tool. Restart and you are be able to select all SSID you find.

Thanks

Revision history for this message
pingsum (pingsum) said :
#4

Hi Massimo,

I tried your suggestion and here is what I got :

sum@Nighthawk:/etc/network$ cat interfaces
auto lo
iface lo inet loopback

iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

auto wlan0

iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

auto wmaster0

sum@Nighthawk:/etc/network$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:F1:D3:83:EF
          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)

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:200 (200.0 b) TX bytes:200 (200.0 b)

wlan0 Link encap:Ethernet HWaddr 00:19:5B:78:00:85
          inet6 addr: fe80::219:5bff:fe78:85/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:9352 (9.1 KiB)

wmaster0 Link encap:UNSPEC HWaddr
00-19-5B-78-00-85-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING 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)

when connecting ----

sum@Nighthawk:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.452 GHz
          RTS thr:off Fragment thr=2346 B

wlan0 IEEE 802.11g ESSID:"BlackHawk"
          Mode:Managed Frequency:2.452 GHz Access Point: 00:18:39:3B:A9:00

          RTS thr:off 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

stop and fail connection :-

sum@Nighthawk:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.452 GHz
          RTS thr:off Fragment thr=2346 B

wlan0 IEEE 802.11g ESSID:""
          Mode:Managed Frequency:2.452 GHz Access Point: Not-Associated
          RTS thr:off 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

It seems that the system is trying to connect to the SSID I selected (oh
yes, your suggestion did work and I can see a number of SSID including my
own), but fail to get connection or IP address. Will that be a WEP key
problem as the system never prompt me for the WEP key.

Best regards
Sum

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Massimo Forti
Sent: Thursday, May 10, 2007 9:51 PM
To: <email address hidden>
Subject: RE: [Question #6172]: wifi setting

Your question #6172 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/6172

    Status: Open => Answered

Massimo Forti proposed the following answer:
iface wlan0 inet dhcp
wireless-essid BlackHawk
wireless-key E67DC10E604A62F9AC9B69F151
wireless-channel 9
iwconfig wlan0 ap 00:18:39:3B:A9:00

Your /etc/network/intefaces force to use this Wi-Fi network (SSID =
BlackHawk). If you want be able to change the SSID using NM you must
change this in intefaces file:

#/etc/network/interaces
auto lo
iface lo inet loopback

#iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

#auto wlan0

#iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

#auto wmaster0

After you must enable roaming mode in the Ubuntu network tool. Restart
and you are be able to select all SSID you find.

Thanks

_______________________________________________________________________
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/6172/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/6172

Revision history for this message
Massimo Forti (slackwarelife) said :
#5

Thanks, but the interfaces file is not correct: this is your:

auto lo
iface lo inet loopback

iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

auto wlan0

iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

auto wmaster0

This is which I posted:

#/etc/network/interaces
auto lo
iface lo inet loopback

#iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

#auto wlan0

#iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

#auto wmaster0

All line have the # comment before except "lo", try this. Thanks

Revision history for this message
pingsum (pingsum) said :
#6

Hi Massimo,

I tried what you suggested and no luck. I can see all the neighbouring SSID
including mine, but can't log into any of them. I had even tried removing
the WEP key but still fail.

Any more suggestion ?

Best regards
Sum

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Massimo Forti
Sent: Friday, May 11, 2007 4:12 PM
To: <email address hidden>
Subject: RE: [Question #6172]: wifi setting

Your question #6172 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/6172

    Status: Open => Answered

Massimo Forti proposed the following answer:
Thanks, but the interfaces file is not correct: this is your:

auto lo
iface lo inet loopback

iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

auto wlan0

iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

auto wmaster0

This is which I posted:

#/etc/network/interaces
auto lo
iface lo inet loopback

#iface wlan0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151
#wireless-channel 9
#iwconfig wlan0 ap 00:18:39:3B:A9:00

#auto wlan0

#iface wmaster0 inet dhcp
#wireless-essid BlackHawk
#wireless-key E67DC10E604A62F9AC9B69F151

#auto wmaster0

All line have the # comment before except "lo", try this. Thanks

_______________________________________________________________________
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/6172/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/6172

Revision history for this message
Massimo Forti (slackwarelife) said :
#7

Thanks, I want to know if you have enabled roaming mode in the network tool ??? Thanks

Revision history for this message
pingsum (pingsum) said :
#8

Hi Massimo,

Yes, I did. I did check the box of enabling roaming mode.

Best regards
Sum

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Massimo Forti
Sent: Saturday, May 12, 2007 3:45 AM
To: <email address hidden>
Subject: RE: [Question #6172]: wifi setting

Your question #6172 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/6172

    Status: Open => Answered

Massimo Forti proposed the following answer:
Thanks, I want to know if you have enabled roaming mode in the network
tool ??? Thanks

_______________________________________________________________________
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/6172/+confirm?answer_id=6

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/6172

Revision history for this message
Massimo Forti (slackwarelife) said :
#9

Thanks, I want to know if you have enabled your mac address in your AD. Thanks

Can you help with this problem?

Provide an answer of your own, or ask pingsum for more information if necessary.

To post a message you must log in.