Custom Search

Thursday, June 23, 2016

How to Configure Static IP Address and Set DNS in Ubuntu 16.04 Desktop and Server

$sudo vim /etc/network/interfaces

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static
address 10.0.2.11
netmask 255.255.255.0
gateway 10.0.2.2

auto enp0s8
iface enp0s8 inet static
address 192.168.56.5
netmask 255.255.255.0


1 comment: