I. Configuring a static IP for a wireless network
Edit the/etc/network/interfaces file as follows:
192.168. 1.120 255.255. 255.0 192.168. 1.1 # (depending on the situation) DNS 8.8. 8.8 8.8.4.4 # (fill in the details)
4. Restart the Network Service command as follows:
#/etc/init.d/networking restart
5. Set up extranet access DNS editing/etc/resolv.conf as follows:
8.8. 8.8 8.8. 4.4
This configuration disappears after each restart of the computer, so see the other workaround: http://www.cnblogs.com/longshiyVip/p/4853262.html two. Configure static IP is not normal to the Internet solution: I based on the above configuration, Static IP is effective, but can not surf the Internet, online search a lot of information how can not surf the problem, finally I put the static IP settings removed and can surf the Internet. So in order to be able to surf the internet, I do not set the static IP, and later on the internet to see a blog post, the original address: about Ubuntu configuration static IP can not be normal Internet solution according to this sentence in the following configuration:
vim/etc/networkmanager/networkmanager.conf #将managed =false to True
found that the static IP set has no effect, but the original dynamic IP has not changed, it is disguised as a static IP bar. In short, after setting the static IP is unable to access the internet I have not solved the problem, this method is temporarily satisfied with my request.
Later on the Internet to see a sentence, as follows:
When using the terminal to configure the following, you must go to the/etc/networkmanager/networkmanager.conf file
Change the last line of the file managed =true to False
Since Ubuntu uses two configuration lines /etc/network/interfaces This profile is primarily intended for use in server versions of Ubuntu systems, and in order to adapt to mobile work, the IP and network environment is constantly changing, Ubuntu Configured in the networkmanager/networkmanager.conf. These two files are conflicting, and the strategy is to use the configuration on this file as the interfaces file is modified, unless the managed parameter in/etc/networkmanager/networkmanager.conf is true.
Ubuntu wireless internet static IP configuration and a solution that does not work properly after configuring a static IP