How to Set Static IP Address and Configure Network in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

26 Responses

  1. Ben says:
    # systemctl restart network

    Failed to restart network.service: Unit network.service not found.

  2. Matthew S. says:

    I’m asking a question on a fairly old thread, but just in case, is it possible to do this on a WIFI network?

    For example, when using the first command (# nano /etc/network/interfaces) in Ubuntu, the result I see is:

    "# interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback"

    There isn’t an “eth0” on my server because it is connected by WIFI only. Will it still work using another option?

    • Ravi Saive says:


      Yes it will work I think so, just change the settings in the interfaces file as explained in this article.

  3. Rashmi Ranjan says:


    I set the static IP in ifcfg-eth0, added HWADDR and UUID, but on reboot system does not associate the IP to eth0.

    This is VM. Any idea why its happening and steps to troubleshoot.


Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.