Ubuntu wireless internet static IP configuration and a solution that does not work properly after configuring a static IP

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.