How to setup static IP in Debian

advertisement

To setup static IP in Debian is a bit difficult as it has no TUI for networking setup. So to setup static IP in Debian, you need to modify file manually.

To setup static IP in Debian follow the steps below:-

  • First, we need to modify /etc/networking/interfaces files, so we make a backup before we perform any edit.

    ** If you do not have this file, you will use /etc/network/interfaces for the above and rest of the steps below

  • Then, we edit the file at /etc/networking/interfaces

  • Put in the content below into the file and save it:-

  • Now, restart your networking setting using the command below

  • Once restarted, your Debian will run on new IP. If you are using SSH to configure the above settings, you will get disconnected. No worry, you can now reconnect to Debian using new the IP.
  • Done, you have just configure your Debian to run on static IP.

Related posts:

Install eAccelerator to Optimize PHP performance
How to add Primary and Secondary DNS server - /etc/resolve.conf - Linux
How to migrate SVN repository?
How to block access to certain file types using .htaccess
How to re-arrange account order in Thunderbird
Maximum length for MySQL TEXT field types
WordPress: How to open rss links in new window?
Cynogenmod: No Vibration when Receiving SMS






4 Responses to “How to setup static IP in Debian”

  1. Gemman Aster says:

    Many thanks for this! Fascinating and clear.

    I especially like the colourized shell console. What are you using?

  2. Thijs says:

    thanks

  3. Guy says:

    Same as comment above-

    Using Lenny, the path for me is: /etc/network/interfaces

  4. In my Debian install (2/12/10) the path to the interfaces file is: /etc/network/interfaces

    Good Luck.
    TE

Leave a Reply