树莓派配置

Wifi认证及静态IP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#### 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认证