标签:disable blog bak code var ifd lan top base
1.stop and disable NetworkManager
sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
2.drop status of NetworkManger
sudo mv /var/lib/NetworkManager/NetworkManager.state /var/lib/NetworkManager/NetworkManager.state.bak
3.edit interfaces
sudo vim /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto wlan0 iface wlan0 inet static netmask 255.255.255.0 gateway 192.168.0.1 address 192.168.0.5 pre-up ip link set wlan0 up pre-up iwconfig wlan0 essid ssid wpa-ssid Tenda_68A3D8 # ssid wpa-psk wxfzwqhqq # password
4. config resolve.conf and add nameserver
sudo vim /etc/resolv.conf or sudo vim /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.0.1
5. restart networking
sudo /etc/init.d/networking restart
disable NetworkManager and boot on static ip configuration using /etc/network/interfaces
标签:disable blog bak code var ifd lan top base
原文地址:http://www.cnblogs.com/cpuz/p/7287363.html