I have two wifi dongles connected to a RPi. I like to use one dongle (Edimax) as primary connection to my home router, and the other as access point (this one being an AWUS036NH). How can I force that the interfaces in /etc/network/interfaces are set up so that it always uses the Edimax for connecting to the router? I tried to add the hwadress to iface but more often than not it will use the wrong wifi dongle to connect to the router. Below is my interfaces file.
Thanks for any comments? Christian
/etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp #static ip instead iface edimax inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 hwaddress ether <edimax_mac_address> # trying to set the edimax as primary wifi-dongle # "edimax" is the id_str set in /etc/wpa_supplicant/wpa_supplicant.conf