Skip to content

Wifi认证及静态IP

shell
#### Raspbian
$ cat /etc/network/interfaces
# ...
source-directory /etc/network/interfaces.d

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
	address 192.168.8.160
	netmask 255.255.255.0
	network 192.168.8.1
	gateway 192.168.8.1
	broadcast 192.168.8.255
	wpa-essid "..."
	wpa-psk "..."

# wpa-essid: wifi名称
# wpa-psk: wifi 密码,psk认证

凡事预则立 不预则废