I have a raspberry 2 with a wifi interface and an ethernet interface. wifi is my main connection with the ability to just plug in the ethernet as a backup method. I want to assign different static address for each interface.What I want is to be able :to boot with only the USB wifi connected on the first address to boot with only the ethernet connected on the second addressto boot with both wifi and ethernet and be able to use both addressesto boot with only the wifi; then hotplug the ethernet and be able to use both addresses.when both wifi and Ethernet are connected, to be able to keep the other connection when one of them is down for a reason or anothe.I couldn't manage to do this. If someone could help me I would be very thankful.Here's my /etc/network/interfaces file :auto loiface lo inet loopbackauto wlan0#allow-hotplug wlan0iface wlan0 inet staticaddress 192.168.1.10netmask 255.255.255.0gateway 192.168.1.1wpa-ssid my-networkwpa-bssid XX:XX:XX:XX:XX:XXwpa-psk  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxauto eth0iface eth0 inet staticaddress 192.168.1.20netmask 255.255.255.0gateway 192.168.1.1
How to have two network interfaces wifi and ethernet (as a backup) working together
linux;networking;wifi;ethernet