Skip to content

Instantly share code, notes, and snippets.

@maglub
Last active January 27, 2018 20:56
Show Gist options
  • Save maglub/34045329784c4b765f44994cf8d0f3f2 to your computer and use it in GitHub Desktop.
Save maglub/34045329784c4b765f44994cf8d0f3f2 to your computer and use it in GitHub Desktop.
Exempel på wpa-roam

Example

  • /etc/network/interfaces
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


iface HEMMA_STATIC inet static
  address 192.168.4.60
  netmask 255.255.255.0
  gateway 192.168.4.1
  broadcast 192.168.4.255
  dns-nameservers 192.168.4.1

iface GYMMET_DHCP inet dhcp
  • /etc/wpa_supplicant/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
  ssid="HEMMANAETET"
  psk="PASSWORD_HEMMA"
  id_str="HEMMA_STATIC"
  priority=15
}

network={
  ssid="GYMMET"
  psk="MY_SECRET_PASSWORD"
  id_str="GYMMET_DHCP"
  priority=15
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment