About Ubuntu configuration static IP is not a good solution to the Internet

Source: Internet
Author: User

Problem:

Static IP is not available on the Internet after it is configured in Ubuntu.


Solve:

1, in the terminal execution vim/etc/network/interfaces in the file to add the following content, the gateway to write, I began to have been unable to access the Internet is because no gateway configuration

Auto Eth0
Iface eth0 inet Static
Address your IP
Netmask 255.255.240.0
Gateway gateways This must be written


2, the execution vim/etc/networkmanager/networkmanager.conf will managed=false to True


3, execute vim/etc/resolvconf/resolv.conf.d/base and then join nameserver your DNS server IP

4, restart the machine. You should be able to surf the Internet.

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.