How to set a static IP in Ubuntu from the shell

Posted by suvi under Networking, Ubuntu

One of the first things I do for my desktops is set them with a static IP. Below is how I go about it.

First uninstall Network Manager. This will just simply get in the way.
Edit as root:
/etc/network/interfaces
and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):
# This

Read more at Tux Training

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word