“模板:WIFI”的版本间的差异
来自ARM Wiki
Tangdapeng(讨论 | 贡献) (创建页面,内容为“<div style="display:none;"> * '''硬件''' ::* 默认无线网卡硬件为<pre style="color: red">RTL8188ETV & RTL8723BU</pre> ::* RTL8723BU为带蓝牙模块 </div>...”) |
Tangdapeng(讨论 | 贡献) |
||
第18行: | 第18行: | ||
# Wireless interface | # Wireless interface | ||
auto wlan0 | auto wlan0 | ||
+ | allow-hotplug wlan0 | ||
iface wlan0 inet dhcp | iface wlan0 inet dhcp | ||
wireless_mode managed | wireless_mode managed | ||
第41行: | 第42行: | ||
cat <<EOF >> /etc/network/interfaces | cat <<EOF >> /etc/network/interfaces | ||
auto wlxec3dfd322b06 | auto wlxec3dfd322b06 | ||
+ | allow-hotplug wlxec3dfd322b06 | ||
iface wlxec3dfd322b06 inet static | iface wlxec3dfd322b06 inet static | ||
− | |||
− | |||
− | |||
wpa-conf /etc/norco.conf | wpa-conf /etc/norco.conf | ||
address 192.168.100.148 | address 192.168.100.148 |
2020年5月20日 (三) 16:38的版本
- 查看设备
- 使用
- 动态IP
1 cat << EOF >> /etc/network/interfaces 2 # Wireless interface 3 auto wlan0 4 allow-hotplug wlan0 5 iface wlan0 inet dhcp 6 wireless_mode managed 7 wireless_essid any 8 wpa-driver nl80211 9 wpa-conf /etc/wpa_supplicant.conf 10 11 EOF
- wpa_supplicant.conf为wpa_passphrase生成的文件,例如:(ssid:test passwd:123456)
1 wpa_passphrase test 123456 > /etc/wpa_supplicant.conf
- 注意:WiFi名称可能不是wlan0,请将wlan0换为实际的无线网卡名称
- 静态IP
1 cat <<EOF >> /etc/network/interfaces 2 auto wlxec3dfd322b06 3 allow-hotplug wlxec3dfd322b06 4 iface wlxec3dfd322b06 inet static 5 wpa-conf /etc/norco.conf 6 address 192.168.100.148 7 netmask 255.255.255.0 8 gateway 192.168.100.1 9 dns-nameservers 223.5.5.5 10 EOF
- 注意:WiFi名称可能不是wlan0,请将wlan0换为实际的无线网卡名称