Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm having a really hard time configuring ubuntu 13.04 to have a static ip address. I have tried multiple solutions but everytime I reboot (can't do the network reset command because ubuntu freezes) I end up with no connection.

Here is what I get when i type ifconfig into the terminal:

eth0      Link encap:Ethernet  HWaddr 10:bf:48:bc:07:cb  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::12bf:48ff:febc:7cb/64 Scope:Link
          RX packets:1763067 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1024326 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2284491220 (2.2 GB)  TX bytes:136809317 (136.8 MB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1840 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:185688 (185.6 KB)  TX bytes:185688 (185.6 KB)

I have also tried this:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static

If anyone could help me it would be very much appreciated.

share|improve this question
Which IP are you trying to get static? And are you using NetworkManager at all? – Thomas Ward Jul 1 '13 at 2:19
@Qasim - Removing networkmanager is not a solution. I prefer wicd myself, but it's still not a solution. It could break loads of things to just rip it out. It's a lot like saying, just remove dnsmasq if you want old style DNS management. It could work, but it's not fixing the problem. – RobotHumans Jul 1 '13 at 5:23
hmmmmm got it.. comment removed about network-manager – Qasim Jul 1 '13 at 5:24

Steps to make the ip address of a system as static

  1. Go to /etc/network
  2. Open interface file (sudo vi/etc/network/interface)
  3. Look for

    auto eth0
    iface eth0 inet dhcp
  4. Replace the above commands with

    auto eth0
    iface eth0 inet static
    address desired ip here)
  5. Then enter

    sudo ifdown eth0; sudo ifup eth0
share|improve this answer
How is this different from what the OP shows? – guntbert Jun 17 '14 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.