Add

How to set up a static IP address on Ubuntu


After an update, the Network Manager crashed. In this situation, the easyest way to set up a static IP address is to edit the configuration files myself. First, I have to remove the Network Manager.

sudo apt-get remove –purge network-manager

The first file to modify is /etc/network/interfaces:

sudo gedit /etc/network/interfaces


Now change eth0 with your setting. This are mine:

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1

The second file to edit is /etc/resolv.conf. In this file you can set the name servers:

sudo gedit /etc/resolv.conf

This are my name servers:

nameserver 193.231.233.1
nameserver 193.226.98.2
nameserver 80.96.184.18

The last thing you have to do is to restart the networking:

sudo /etc/init.d/networking restart

The system should be using now the setting defined in the two edited files.

1 Star2 Stars3 Stars4 Stars5 Stars (14 votes, average: 5.00 out of 5)
Loading ... Loading ...

The Discussion

see what everyone is saying

  • Top News August 23rd, 2010 at 12:27 #1

    Nice info, i was looking for this topic

Respond

get in on the action.

* Required

Rumanian flagItalian flagEnglish flagGerman flagFrench flagSpanish flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagSwedish flagNorwegian flagSerbian flagSlovenian flagUkrainian flagTurkish flagHungarian flag
By N2H

Random Posts Recent Comments

  • admin Says:

    Amigo, Please formulate your question in english if you really need help! Cheers!...

  • Mauricio Gonçalves Says:

    Boa tarde, Amigo eu não consigo add novo user poderia me ajudar? ele fala que o comando não é ...

  • Flossy Says:

    Zubao0 That's really thinking out of the box. Thanks!...

  • Michael Esch Says:

    I used this tutorial to install Komodo Edit 6 on Ubuntu 10.10; I rate your tutorial 5/5 I hope that...

  • admin Says:

    @dan Am rulat aplicatii create in visual basic si in fox sub wine, deci cred ca nu ar trebui sa fie ...

  • dan Says:

    as dori sa imi spuneti daca un prg de conta sub visual basic ruleaza cu wine sub ubuntu intreb deo...

  • admin Says:

    Thank you all for your comments. As I was busy latelly, I haven't answer to your posts. I hope you u...

  • tcpdump Says:

    Hello, I also faced the error "It appears as though you do not have permission to view informatio...

  • Ali Says:

    awesome!!!...

  • Schedule Says:

    You you should make changes to the post subject Split and join files in Ubuntu with lxsplit | EtutsR...

Tag Cloud