Ubuntu 14.04 Binding Fixed IP

Source: Internet
Author: User

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

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.