本文共 816 字,大约阅读时间需要 2 分钟。
/etc/network/interfaces
# Include files from /etc/network/interfaces.d:source-directory /etc/network/interfaces.dauto loiface lo inet loopback#iface eth0 inet manualallow-hotplug eth0iface eth0 inet staticaddress 192.168.1.100netmask 255.255.255.0gateway 192.168.1.1dns-nameserver 192.168.1.1#iface eth0 inet dhcp# need auto line unless wlan will not start until lan upauto wlan0allow-hotplug wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ ssid="xxxx" #psk="yyyy" psk=zzzz key_mgmt=WPA-PSK}
上面的ssid,psk是加密的。通过wpa_passphrase生成
# wpa_passphrase myssid passwordnetwork={ssid="myssid"#psk="password"psk=e53bb7df43156b8a6ad5d3ea5bb4078fada2531e2d5d5208c3bc1a17c3278220}
转载地址:http://pplja.baihongyu.com/