# file /etc/network/interfaces
auto lo
iface lo inet loopback

#auto eth0
#allow-hotplug eth0
#iface eth0 inet manual

auto wlan0
allow-hotplug wlan0

# 动态自动分配IP 
#iface wlan0 inet dhcp
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

# 静态IP地址
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 192.168.1.151
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.1                  
# file /etc/wpa_supplicant/wpa_supplicant.conf
network={
        ss # 接入点名称
        scan_ssid=1 # 如果无线接入点是隐藏的,加上
        key_mgmt=WPA-PSK # 认证密钥管理协议
        psk="password" # wifi密码
        proto=RSN  # WPA2 加密方式 
}
~   

官方参考文档

相关文章:

  • 2021-05-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-09-02
  • 2021-10-20
  • 2021-06-28
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-24
  • 2021-11-15
  • 2022-01-18
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案