Open Network Configuration file.
#nano /etc/network/interface
Then Add below mentioned lines and make changes as per your need.
auto eth0
iface eth0 inet static
address 192.168.0.101
gateway 192.168.0.1
netmask 255.255.0.0
network 192.168.0.0
broadcast 192.168.0.255
Now Save file.
Open DNS Configuration file
#/etc/resolv.conf
Add below mentioned lines with your DNS IPs.
nameserver 8.8.8.8
nameserver 8.8.4.4
Save file.
Open Second DNS conf file.
#nano /etc/resolvconf/resolv.conf.d/base
add below mentioned lines with your DNS IPs.
nameserver 8.8.8.8
nameserver 8.8.4.4
Save file and restart your Networking service with below command.
#/etc/init.d/networking restart or #service networking restart
#nano /etc/network/interface
Then Add below mentioned lines and make changes as per your need.
auto eth0
iface eth0 inet static
address 192.168.0.101
gateway 192.168.0.1
netmask 255.255.0.0
network 192.168.0.0
broadcast 192.168.0.255
Now Save file.
Open DNS Configuration file
#/etc/resolv.conf
Add below mentioned lines with your DNS IPs.
nameserver 8.8.8.8
nameserver 8.8.4.4
Save file.
Open Second DNS conf file.
#nano /etc/resolvconf/resolv.conf.d/base
add below mentioned lines with your DNS IPs.
nameserver 8.8.8.8
nameserver 8.8.4.4
Save file and restart your Networking service with below command.
#/etc/init.d/networking restart or #service networking restart