Ubuntu 14.04 static IP settings

Source: Internet
Author: User
Tags dns nameservers

1. Edit/etc/network/interfaces

Vim/etc/network/interfaces

2. Add the following five items to the/etc/network/interfaces

    • Static Declaration (using <interface> chosen above): Iface <interface> inet Static
    • Static IP address: Address <chosen ip>
    • Network Gateway: Gateway <gateway ip>
    • netmask/subnet: Netmask <netmask ip>
    • DNS nameservers: dns-nameservers <dns IP ' s>

3. The following files have been modified

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see Interfaces (5).

# The Loopback network interface
Auto Lo
Iface Lo inet Loopback

Auto Eth0

# The Primary network interface
Iface eth0 inet Static
Address 192.168.1.8
Gateway 192.168.1.1
Netmask 255.255.255.0
Dns-nameservers 223.5.5.5 223.6.6.6

4. Restart the Network Service

Service Networking Restart

Ubuntu 14.04 static IP settings

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.