Search the Site


bottom corner

Set a static IP address for Mythbuntu

When I set up my Mythbuntu box for my home entertainment center, it seems that by default it was set to dynamic IP, which makes things just a tad bit annoying when the IP address changes. This article notes how I made the network address static.

This page is filed under keyword(s): ubuntu, mythbuntu.

The process to set a static IP address to a Mythbuntu box is very similar to Ubuntu, given that Mythbuntu is built upon Ubuntu. In Mythbuntu, choose "Utilities/Setup" from the main menu, then "Setup", and finally "Mythbuntu". After putting in the password, you will be presented with the Mythbuntu Control Centre. Under "Advance Management", you will be able to "Launch Terminal".

First, check out what your current settings are.

ifconfig -a

Take a note what your current broadcast, subnet mask, and gateway settings are. Also, have you decided on an IP address for your Mythbuntu box yet?

Next, issue this command to modify the Mythbuntu box's network settings.

sudo pico /etc/network/interfaces

In the pico text editor tool, you probably only see a set of "lo", or loopback, settings. Let's add a new set for "eth0" so that the whole content of the file looks something like the following. Note your addresses may be different. In my case, I set the box's static IP address to, for example, and yours may be different.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

Finally, restart the network card with the following command.

sudo /etc/init.d/networking restart

That's it! You should now be able to access the Mythbuntu box with the same IP every time now! No more trying to guess what the IP address might change to every time you turn it on!

Did you find this page useful? Please consider browsing other articles or subscribing to the RSS feed to keep up with latest.

This page is filed under keyword(s): ubuntu, mythbuntu.
Author: C. Peter Chen
Last updated: 25 May 2008

bottom corner