Step 1:
sudo vi /etc/network/interfaces
Step 2:
## To configure a dynamic IP address write below content to the file
auto eth0
iface eth0 inet dhcp
## Or configure a static IP write below content to the file. don't write both.
auto eth0
iface eth0 inet static
address 192.168.1.14
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Step 3:
sudo /etc/init.d/networking restart
Step 4: check the ip is assigned on not in case of "dhcp"
ifconfig
or ping www.google.com
then peform the installation