A20-LIME2 and MOD-WIFI-R5370-ANT [SOLVED]

Started by janneman, April 16, 2015, 10:31:52 PM

Previous topic - Next topic

janneman

Hello,

I'm having trouble setting up the wifi connection with the " MOD-WIFI-R5370-ANT " https://www.olimex.com/Products/USB-Modules/MOD-WIFI-R5370-ANT/

I have added the following to /etc/network/interfaces:


auto wlan0
iface wlan0 inet dhcp
        wpa-ssid WiFi-2.4-CED5
        wpa-psk MYPA55WORD


I also stopped the network-manager service and rebooted.

After rebooting, I receive an IP address (192.168.1.25) from 192.168.1.1 (which is indeed my gateway)

Here is the relevant output of iwconfig


wlan0     IEEE 802.11bgn  ESSID:"WiFi-2.4-CED5"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 30:91:8F:47:DE:C5 
          Bit Rate=1 Mb/s   Tx-Power=20 dBm 
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=20/70  Signal level=-90 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


I can ping 192.168.1.25, but i can't ping my gateway or google.com (host unreachable).

- I already checked the MAC address of the access point


Which setting am I misssing here?

I am using the debian version on memory card as provided by olimex. I haven't installed or configured anything else yet...

Please help :)

Gerrit

the output from

ifconfig

route

cat /etc/resolv.conf

would be of help to determine what is wrong

janneman


Based on Gerrit's reply (Thank you Gerrit  :) ), i checked ifconfig, route and cat /etc/resolv.conf

I am having an eth0, usb0, wlan0 and lo interface.


/etc/resolv.conf:

domain lan
search lan
nameserver 192.168.1.1


route returned nothing.

I disabled eth0 with:
ifdown eth0

Now i can go online!  :o

route now also returns:

Destination   Gateway         Genmask        Flags  Metric    Ref  Use    Iface
default       dsldevice.lan   0.0.0.0        UG     0         0    0      wlan0
192.168.1.0   *               255.255.255.0  U      0         0    0      wlan0
192.168.2.0   *               255.255.255.0  U      0         0    0      usb0


Next I put a # before auto eth0 in /etc/network/interfaces to disable it:


auto lo
iface lo inet loopback

#auto etho0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1

auto usb0
#iface usb0 inet dhcp
iface usb0 inet static
address 192.168.2.1
netmask 255.255.255.0
#gateway 192.168.2.1


Does this look okay, or are there settings that could be improved?

Thanks.