10 Useful “IP” Commands to Configure Network Interfaces

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Ravi Saive

Simple Word 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.

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

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

22 Responses

  1. 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 via dev eth1

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

    • Ravi Saive says:


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

  2. 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.


  3. Veasna Thong says:

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

  4. Daniel Moreno says:

    Very usefull post

  5. pio777 says:

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

  6. Ji Ji says:

    great tutorial

Leave a Reply

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

Join Over 95000+ Linux Users
  1. 66,682
  2. 3,836
  3. 31,647

Enter your email to get latest Linux Howto's