Config Static IP Address manually in Ubuntu

The process of the configuration of static IP address in Ubuntu is as follows:

  1. $ sudo vim /etc/network/interfaces

  2. $ sudo vim /etc/resolv.conf

  3. $ sudo vim /etc/resolvconf/resolv.conf.d/base

    Add the following lines:

    nameserver 159.226.7.254
    nameserver 8.8.8.8
  4. $ sudo /etc/init.d/networking restart



References:

  1. Ubuntu系统下配置IP地址方法介绍
  2. Ubuntu14.04下如何配置固定IP

你可能感兴趣的:(Config Static IP Address manually in Ubuntu)