My /etc/network/interfaces:

auto lo

iface lo inet loopback

auto eth0
iface eth0 inet dhcp

allow-hotplug walnut
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

My wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdav


when I run sudo /etc/init.d/networking restart I get nothing.

I want to use ethernet when i'm at the lab and wifi when at home. So, use ethernet if available, otherwise use wifi. But it seems to try and connect to the same router IP address when though they are different networks.

closed as off-topic by goldilocks May 9 '15 at 17:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – goldilocks
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.