I have a Raspberry Pi Model B, running Raspbian Wheezy, with an attached (and fully functional) Ourlink USB wireless card. However, upon making a wired Ethernet connection, the wireless network is disconnected. Is there any setting I can change to prevent this? I have verified that both wireless and wired connections can function simultaneously, by manually re-enabling the wireless connection over the wired connection.

  • It shouldn't do... Could you post the output of things like ipconfig and iwconfig and netstat -rn after connecting the ethernet, so we can help you work out what happened?
    – Gagravarr
    Aug 24, 2013 at 22:41

1 Answer 1


In the /etc/network/interfaces file, change the line

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Explenation is that wpa-roaming is a method with which you can browse and connect to wireless networks.

The result of the following setup is that if an ethernet cable is not attached, wlan0 takes precedence and connects you to your desired wireless network or to an available open wireless network or a predetermined wireless network. If you connect an ethernet cable, the cabled network connection immediately shuts down WiFi access and eth0 then connects you to the cabled network. By unplugging the network cable the wireless connection will instantly be available again.

Source : http://manual.aptosid.com/en/inet-setup-en.htm

I assume that, wpa-conf is the static configuration which not needed for roaming through network interfaces. I couldn't find any relevant and detailed document for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.