paulv wrote:I also struggled a bit to get things right with Jessie, but after some cursing (why change it without a proper warning or how to), I am actually liking the new situation.
I modified my /etc/network/interfaces back to the original state:
Code: Select all
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
I modified /etc/wpa_supplicant/wpa_supplicant.conf to only have the ssid and psk information and commented everything else out.
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="xxxx"
psk="yyyy"
# scan_ssid=1
# proto=WPA2 # can be RSN (for WPA2) or WPA (for WPA1)
# key_mgmt=WPA-PSK # can be WPA-PSK or WPA_EAP (for enterprise networks)
# pairwise=CCMP TKIP # can be CCMP( for WPA2) or TKIP (for WPA1), or both
# auth_alg=OPEN # can be OPEN, LEAP and SHARED
# group=CCMP TKIP
# priority=1
}
If you also have multiple access points (home, work, school), you now only need to change this file and add more network sections (with different names) here. If needed, you can reactivate the scan and priority options.
I have not tried this, but if you want to use both wlan0 and wlan1, I understand you need to use two different wpa.conf files. Look at wpa_supplicant(8).
Because you need sudo to access this file, as before, your network access information is more protected then having it in the "public" /etc/network/interfaces file.
I then added this at the very end of the "new" /etc/dhcpcd.conf file:
Code: Select all
# Static IP configuration
interface eth0
static ip_address=192.168.100.21/24
interface wlan0
static ip_address=192.168.100.20/24
static routers=192.168.100.1
static domain_name_servers=8.8.8.8 8.8.4.4
With this setup, I can switch between LAN and/or WLAN, and have either one or both active depending on the LAN cable plugged in, or the WIFI dongle plugged in, or both.
With these settings, you will now only have the above IP addresses active (depending on cable and/or dongle) and there is no gost IP anymore.
Like I said, after some cursing, I believe it's better and more simple now. I hope this helps others too.
Paul