Edit the following file from the terminal:
sudo vim /etc/network/interfaces (enter in your password when asked)
Make sure iface eth0 inet static is present if you want to enter in a static IP address
Next, Change the Address, NetMask, Network, Broadcast and Gateway to match your network configuration. When you are finished, just hit ESC followed by :wq <enter> to save.
Restart your network to apply your settings.
sudo /etc/init.d/networking restart

Advertisement
Tags: Linux