1.輸入命令
sudo nano /etc/network/interfaces
2.打開后是這樣:
auto lo
iface lo inet loopback
iface eth0 inet dhcp.
auto wlan0
iface wlan0 inet dhcp
配置靜態ip改為
auto lo iface lo inet loopback iface eth0 inet static address 192.168.1.114 netmask 255.255.255.0 gateway 192.168.1.1 auto wlan0 iface wlan0 inet static address 192.168.1.114 netmask 255.255.255.0 gateway 192.168.1.1 wpa-ssid 你的wifi名稱 wpa-passphrase 你的wifi密碼 wireless-channel 11
3.重啟網絡
sudo /etc/init.d/networking restart