树莓派无线usb网络interface配置
auto loiface lo inet loopback#iface eth0 inet static#address 192.168.1.24#gateway 192.168.1.1#netmask 255.255.255.0iface eth0 inet dhcpauto wlan0allow-hotplug wlan0iface wlan
·
auto lo
iface lo inet loopback
#iface eth0 inet static
#address 192.168.1.24
#gateway 192.168.1.1
#netmask 255.255.255.0
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
iface lo inet loopback
#iface eth0 inet static
#address 192.168.1.24
#gateway 192.168.1.1
#netmask 255.255.255.0
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "youname"
wpa-psk "routerpassword"
我的是带引号的,引号别去掉。
我参考下面的
树莓派usb无线网卡配置(自动连接wifi)
修改 /etc/network/interfaces 文件
sudo vim /etc/network/interfaces
修改后文件内容如下:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "JoStudio"
wpa-psk "password"
保留引号
注意:如果你一直没进过图形化界面,请把原来的:
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
注释掉
完全按照上面的命令配置
更多推荐
已为社区贡献1条内容
所有评论(0)