Configuring a Static IP in Ubuntu Linux

Unless someone lets me in on an easier process, here are the command line steps to configure a static IP address in Ubuntu Linux (in my case specifically for the BitNami Alfresco appliance):

 sudo vi /etc/network/interfaces

For us GUI geeks, pull up a vi refresher if you’re a little rusty. Replace the default line:

iface eth0 inet dhcp

With the following lines (and the proper IP):

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0

 Save and exit. Reboot.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.