run ifconfig to find the name of your Interface.  Normally these would be eth0, eth1 etc but in my Virtual Environment they are different

1

cd /etc/network
sudo nano interfaces

2

Make all changes required, including:

  • Change from DHCP to Static
  • Add Address, Netmask and Gateway

3

Write out file using Control + O, Overwrite File and Control-X (to exit)

Restart the network interfaces by:

sudo ifdown ens33 && sudo ifup ens33 (substituting ens33 with your interface)

Advertisements