Problems in configuring WiFi via D-Link Access Point

Asked by Karvagroth

I have D-Link Access Point (DAP-1150) configured to use static IP, connected itself to a D-Link router (DIR-100). I use the same settings for WiFi card in Windows and Ubuntu(9.04-x86-64), installed on my machine, but in Windows it works and in Ubuntu - not.
The strangeness is that ifconfig, iwconfig and route show the correct settings(e.g. gateway), but I cannot ping even the Access Point.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Are you connected to the SSID? You can set all the IP addresses you want, if the wifi pairing has not taken place then no traffic will communicate.

I suggest you try using DHCP first just to test.

Can you please provide the output of:

sudo iwlist scan

Thanks

Revision history for this message
Karvagroth (karvagroth) said :
#2

Well, here is the output:
karvagroth@karvagroth-home:~$ sudo iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wmaster0 Interface doesn't support scanning.

wlan0 Scan completed :
          Cell 01 - Address: 00:1E:58:EC:54:97
                    ESSID:"wihome"
                    Mode:Master
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=28/100 Signal level:35/65
                    Encryption key:on
                    IE: Unknown: 00067769686F6D65
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: DD800050F204104A0001101044000102103B0001031047001063041253101920061228001E58EC549710210012442D4C696E6B20436F72706F726174696F6E102300084441502D313135301024000241311042000F3132333435363738393031323334371054000800060050F2040001101100084441502D31313530100800020086
                    IE: Unknown: DD050050F20500
                    IE: Unknown: DD0700E04C01020300
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=000000088ed3919b
                    Extra: Last beacon: 20ms ago

pan0 Interface doesn't support scanning.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ok so the wireless device is installed and drivered up. Signal quality isn't great (28%) but it will work.

ok if you use the network manager to connect to the ssid "wihome" then you will be asked for the key to connect to it (WEP / WPA / whatever). Your static IP will then be usable.

If you have any other restrictions on your connection (MAC filtering etc) then this will also need addressing.

The hard bit has been done though as the adapter in your system is working great :D

Revision history for this message
Karvagroth (karvagroth) said :
#4

Well, I have been told that Ubuntu "understands" most of modern hardware.
So-so-so. I connect, everything is ok(the GUI indicator shows the connection), but I still cannot ping anything exept myself:(

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Some it does, some it doesnt.

ok lets experiment

In a terminal can you run:

ping 38.99.130.180 -c 4
nslookup www.bmezine.com

Can you also provide the output of

gedit /etc/resolv.conf

thanks

Revision history for this message
Karvagroth (karvagroth) said :
#6

Here is the output:

karvagroth@karvagroth-home:~$ ping 38.99.130.180 -c 4
PING 38.99.130.180 (38.99.130.180) 56(84) bytes of data.
From 192.168.1.111 icmp_seq=1 Destination Host Unreachable
From 192.168.1.111 icmp_seq=2 Destination Host Unreachable
From 192.168.1.111 icmp_seq=3 Destination Host Unreachable
From 192.168.1.111 icmp_seq=4 Destination Host Unreachable

--- 38.99.130.180 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3016ms
, pipe 2

***

karvagroth@karvagroth-home:~$ nslookup www.bmezine.com
;; connection timed out; no servers could be reached

***

/etc/reslov.conf

# Generated by NetworkManager
nameserver 212.48.193.37

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

ok the dns resolves to

dnscache2.spbnit.ru

but does not ping.You need to use an app like wifi-radar or network manager to connect to the SSID first.

Revision history for this message
Karvagroth (karvagroth) said :
#8
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Can't say fairer than that. Can you please provide the output of:

route

Thanks

Revision history for this message
Karvagroth (karvagroth) said :
#10

karvagroth@karvagroth-home:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

Revision history for this message
Karvagroth (karvagroth) said :
#11

Sorry for awful formatting, I was in hurry

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Hmmm, is your hostname in /etc/hosts and resolving to the IP you set?

Revision history for this message
Karvagroth (karvagroth) said :
#13

The contents of /etc/hosts was:
127.0.0.1 localhost
127.0.1.1 karvagroth-home

I changed the second line to 192.168.1.111 and restarted the network daemon. The hostname resolved, by still cannot ping.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#14

try changing:

127.0.0.1 localhost

to

127.0.0.1 localhost karvagroth-home

This can make the system faster

Revision history for this message
Karvagroth (karvagroth) said :
#15

I' ve changed it, still the same. But I noticed a message, while restarting networking daemon:

karvagroth@karvagroth-home:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces... Ignoring unknown interface wlan0=wlan0.
                                                                         [ OK ]

Is that right?

Revision history for this message
Launchpad Janitor (janitor) said :
#16

This question was expired because it remained in the 'Open' state without activity for the last 15 days.