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