Wifi only works if connected also by LAN
|
22nd Jan, 2016, 07:42 AM
Post: #1
|
|||
|
|||
Wifi only works if connected also by LAN
Hi guys! I have been reading the forum, different topics, but I couldn't find a problem like mine. Long story short:
- I bought a EDIMAN EW-7811UN USB wifi adapter. - Connected to the RPI2 and configured by ssh (detect the WLAN and successfully connect to it) - When I reboot the PI, it is not working. If a PING the IP address (fixed IP address) I don't get any response. - I reboot several times, also tried to config it again with the same result (I can connect to the VLAN on the xbian-config but then it is not working). - The only that I can make it to work is connecting the RPI2 by LAN and Wifi. This way the RPI2 has to IP addresses: LAN and wifi. It's so weird, I don't know why is happening this. Any idea would be very much appreciated. |
|||
23rd Jan, 2016, 04:55 AM
Post: #2
|
|||
|
|||
RE: Wifi only works if connected also by LAN
I've a feeling that your network settings are incorrect.
Check /etc/network/interfaces Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
23rd Jan, 2016, 05:25 AM
Post: #3
|
|||
|
|||
RE: Wifi only works if connected also by LAN
(23rd Jan, 2016 04:55 AM)IriDium Wrote: I've a feeling that your network settings are incorrect. I have just checked the file, the only weird thing is that WLAN information seems duplicated, one of them with a wrong password. The file content is below: auto lo # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d iface eth0 inet dhcp iface lo inet loopback allow-hotplug wlan0 iface wlan0 inet static wpa-ssid VALHALA wpa-psk ***********(the correct password) address 192.168.1.43 netmask 255.255.255.0 gateway 192.168.1.1 iface default inet dhcp allow-hotplug wlan1 iface wlan1 inet static wpa-ssid VALHALA wpa-psk ************(the wrong password) address 192.168.1.42 (this is the static IP that I set in xbian-config) netmask 255.255.255.0 gateway 192.168.1.1 |
|||
24th Jan, 2016, 01:07 AM
Post: #4
|
|||
|
|||
RE: Wifi only works if connected also by LAN
I would delete all the info from "wpa-ssid VALHALA" and start again.
This time set up the network in ssh xbian-config, not from Kodi and see if that helps. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
25th Jan, 2016, 05:09 AM
Post: #5
|
|||
|
|||
RE: Wifi only works if connected also by LAN
(24th Jan, 2016 01:07 AM)IriDium Wrote: I would delete all the info from "wpa-ssid VALHALA" and start again. I have tried setting up the network by ssh with the same result. The only way that I have found to make it work through wifi is setting IP to DHCP. |
|||
25th Jan, 2016, 05:33 AM
Post: #6
|
|||
|
|||
RE: Wifi only works if connected also by LAN
Can you remember which image you used to install Xbian?
If so, I'll try and replicate the error. Also it would help if you could post the output of dmesg via pastebin after a reboot as it might provide some information. It might also be worth upgrading, and see if that solves the problem. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
26th Jan, 2016, 07:59 AM
Post: #7
|
|||
|
|||
RE: Wifi only works if connected also by LAN
(25th Jan, 2016 05:33 AM)IriDium Wrote: Can you remember which image you used to install Xbian? I installed Xbian about 2 or 3 weeks ago and used the latest version for RPI2 that was selected by default in Xbian installer. |
|||
26th Jan, 2016, 10:30 PM
Post: #8
|
|||
|
|||
RE: Wifi only works if connected also by LAN
Well it wasn't 2016-01-16 as that failed to work - stuck on loading.
Tried 2016-01-10 - That image worked - or at least booted. Image does crash if ethernet cable removed but the wifi worked as setup without ethernet. Provide: Output of lsusb and dmesg (Via pastebin) Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
1st Feb, 2016, 04:23 AM
Post: #9
|
|||
|
|||
RE: Wifi only works if connected also by LAN
(26th Jan, 2016 10:30 PM)IriDium Wrote: Well it wasn't 2016-01-16 as that failed to work - stuck on loading. lsusb: http://pastebin.com/avFe5rd9 dmesg: http://pastebin.com/VBma2eEH |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[SOLVED] Wifi works, doesn't find network | Ichalex | 16 | 51,896 |
10th Apr, 2013 10:20 PM Last Post: Ichalex |