一 设置有线网卡静态IP:sudonano /etc/dhcpcd.conf 在文件结尾加入以下内容:
interface wlan0static ip_address=192.168.1.141/24static router=192.168.1.
1 static domain_name_serverrs=192.168.1.1 10.18.0.1 # DNS二 配置wlan 输入 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf在尾部添加wifi账号和密码network={ssid=""psk=""}三 设置 interfaces输入 sudo nano /etc/network/interfacessource-directory /etc/network/interfaces.dauto loiface lo inet loopbackiface eth0 inet manualallow-hotplug wlan0iface wlan0 inet dhcp # 这里改为dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.confallow-hotplug wlan1