Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:192.168.0.8  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::12bf:48ff:febc:7cb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          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:127.0.0.1  Mask:255.0.0.0
          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
        address 192.168.0.160
        netmask 255.255.255.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-nameservers 24.222.0.94
        dns-nameservers 24.222.0.95

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 W. 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. –  hbdgaf Jul 1 '13 at 5:23
    
hmmmmm got it.. comment removed about network-manager –  Qasim Jul 1 '13 at 5:24
add comment

1 Answer

While this YouTube video shows configuring a static IP Aaddress for 12.04 it will wokr on 13.04 as well. http://youtu.be/HF4N4Q-42Go

Should help you out

share|improve this answer
    
Thank you for the response but unfortunately I have tried that and it doesn't work. –  Jordan Angelucci Jul 1 '13 at 1:53
1  
I have fixed the problem. I had it right all along except for a few things in the wrong places, but also this happened askubuntu.com/questions/2901/… –  Jordan Angelucci Jul 1 '13 at 6:03
add comment

Your Answer

 
discard

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.