10 Useful “IP” Commands to Configure Network Interfaces

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.95/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.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

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. Thanks for this great post, but may I have two questions, not related directly to your article, but I think you can help me.

    1. How to change IP address to another IP “Say I am from Egypt and I need ip from USA”

    2. Is there any way to know the current speed of my internet connection.

    Looking for your reply,
    Mohamed Elhosary

  2. Rob says:

    Thanks for this, any chance you could write something to show how to set up home network, for noobs, when you are trying to access shares from a win 7 machine from a Linux machine?

  3. Vahid feizi says:

    Hi
    That was so practical and useful, thank you.

  4. Helper says:

    in my centos 6.5, I am using two interfaces. eth0 for public ip and eth1 private ip. I have made default gateway to public ip. But for other purpose, I need private ip for connetion to other system.

    I have added static routes but they are lost when system reboots. So I add persistent route

    # vi /etc/sysconfig/network-scripts/route-eth1
    192.168.20.0/24 via 192.168.50.100 dev eth1

    when I save this , then the system indicates that eth1 is disconnected. Any suggestion?

    • Ravi Saive says:

      @Dipendra,

      To keep this route at system boot you should add this entry to /etc/rc.local file, this file executes when system boots so whatever you add this will auto start at system reboot..

  5. Venkata Subbarao says:

    Hi Ravi,

    Very good article. Could you please suggest me on the following ?

    I have a requirement where I have a Ubuntu system and many devices wants to talk to this and this system wants to talk to them. Some are having different subnet though they are connected to same layer-2 switch. I am in dilemma, whether to use ip aliasing or vlan. Any suggestion please.

    Thanks,
    Subbarao

  6. Veasna Thong says:

    Hi Sir!
    i have follow by your command line successful , i’m so thank you so much !! :D

  7. Daniel Moreno says:

    Very usefull post
    ;-)

  8. pio777 says:

    Compact size tutorial – good work! I used it once already. Thanks.

  9. Ji Ji says:

    great tutorial

Got something to say? Join the discussion.

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