Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using ubuntu 10.04 ultimate edition 2.6 and I want to change my IP address (I didn't know how to check whether it's static or dynamic) these are the following entries I found in /etc/network/interfaces.

iauto lo  
iface lo inet loopback  

How can I change my IP address?

share|improve this question
Do you want it to be static or dynamic? – Brian Kintz Jul 23 '10 at 11:46

Your Ethernet interface is not listed in /etc/network/interfaces. Ubuntu uses network manager. Just right-click on the network icon on the top of your screen, then edit connections.

share|improve this answer

if you have static Ip you can set it like this:

Edit /etc/network/interfaces

and adjust it to your needs (in this example setup I will use the IP address

auto lo
iface lo inet loopback

mapping hotplug
        script grep
        map eth0

auto eth0
iface eth0 inet static
share|improve this answer

Assuming you want to change your external IP address.

If you are on DSL restart the modem, dial up just disconnect and reconnect.

On cable the most consistent way to get a new IP address is to spoof the mac address of the NIC connected to the internet. To spoof your mac address on Ubuntu edit

Add this under eth0

iface eth0 inet dhcp
       hwaddress ether 01:02:03:04:05:06

If you have a static IP address you need to contact your ISP or use a proxy.

share|improve this answer

You must log in to answer this question.