3korre.se

by ekorrar for ekorrar!

User Tools

Site Tools


raspberry_wifi_sip

Wifi & Static IP on Raspberry Pi

sudo nano /etc/network/interfaces
interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
 
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
 
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
 
auto lo
iface lo inet loopback
 
auto eth0
allow-hotplug eth0
iface eth0 inet manual
 
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
 
address 192.168.1.80
netmask 255.255.255.0
gateway 192.168.1.1
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant.conf
country=SE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
 
network={
ssid="Tassnet"
psk="********"
key_mgmt=WPA-PSK
}
Raspberry Jessie
sudo nano /etc/dhcpcd.conf
 
 
interface wlan0
 
static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
 
reboot
raspberry_wifi_sip.txt · Last modified: 2017/02/28 16:44 by ekorre