RASPBIAN配置无线网卡
编辑 /etc/wpa_supplicant/wpa_supplicant.conf
文件,添加:
network={
ssid="无线网名称"
psk="无线网密码"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}
- 自动获取ip地址,
编辑 /etc/network/interfaces文件
,修改为
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
- 配置固定ip地址
编辑 /etc/network/interfaces
文件,修改为
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
ipaddr 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1