I am trying to connect a web power switch v7 to rpi through the ethernet jack, and then connect the rpi to the internet through usb wifi.
I looked at several QA, including this well voted one: Setting up WiFi and Ethernet
It works, but only if I first start with only the wifi dongle connected, then manually plug in the ethernet cable.
If I start with both plugged in, and reboot, only the ethernet works. The wifi dongle light turns off. My concern is power failures.
What is happening here?
My settings are pretty much lifted from various posts:
/etc/default/ifplugd INTERFACES="eth0" HOTPLUG_INTERFACES="eth0" ARGS="-q -f -u0 -d10 -w -I" SUSPEND_ACTION="stop" Start up:
/etc/rc.local ... sudo ifplugd eth0 --kill sudo ifup wlan0 Network interfaces:
/etc/network/interfaces auto lo iface lo inet loopback autho eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.0.51 netmask 255.255.255.0 auto wlan0 allow-hotplug wlan0 # I tried static vs manual, as per the posts, doesn't make a difference iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp And finally my wpa supplicant:
/etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="[my network name]" psk="[my password]" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP } If it matters, running RASPBERRY PI 2 MODEL B, with raspberian UI.