Reference Baidu Experience
First log in with the root user, then enter your root password, and if you don't need root login you can add sudo before the command:
Then edit the interfaces file, located below/etc/network/, and execute the following command:
Gedit/etc/network/interfaces
Add Content:
# Interfaces (5file used by Ifup (8) and Ifdown (8192.168. 1.100255.255. 255.0 192.168. 1.1 # Gateway
After adding, save exit, the next step is to configure DNS resolution, DNS resolution file/etc/resolv.conf, execute the command:
Gedit/etc/resolv.conf
Then add it under the file:
192.168. 1.1 220.170. 64.68
To change it, if it restarts, it will be the same, so make it permanent, so execute:
Gedit/etc/resolvconf/resolv.conf.d/base
Add in Inside
192.168. 1.1 220.170. 64.68
Then save the exit, here is basically completed, and then can not connect to the network, to the/etc/networkmanager/directory under the system-connections Delete, or move to another directory.
Final execution:
/etc/ini.d/network-manager restart
Ubuntu 14.04 Binding Fixed IP