10 Useful “IP” Commands to Configure Network Interfaces

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

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.

TecMint users Get a Free Domain and 30% off on Inmotion Web Hosting - Signup with Inmotion Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

14 Responses

  1. Anuradha says:

    Very good article with simple steps

  2. xshadow yass says:

    thank you for tutorial that you & your team made they are so good
    please i have a problem i have already a public @ IP assigned to my dedicated server
    but i bought another failover @ip please how can i add it to my dedicated server
    so i can assign to it a domain name

    Best regards,

    PS: my interface file :
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto em1
    iface em1 inet dhcp

    Ubuntu 14.04.1

  3. DaveB says:

    In your instructions above, the first time you mention to restart the network services you have:

    # /etc/init.d/networking restart

    $ sudo /etc/init.d/networking restart

    This should be

    # /etc/init.d/network restart

    $ sudo /etc/init.d/network restart

    like you have near the end of the article.

  4. Pierre says:

    I noticed that these two commands behave differently:

    ip link set eth0 down
    ip link set dev eth0 down

    When dev is not used, the link state is brought down and stays down. Otherwise it will come up again soon after executing the command. The difference between the commands does not appear to be documented anywhere. Would you happen to know exactly what happens when running the commands and where the difference in behaviour stems from?

  5. Gene says:

    Hey Ravi!

    great article as always

    but quick question thou what’s the difference between ifup and ip link set ???

    • Ravi Saive says:

      Bro, ifup command is used to up network interface and ip command is used to assign IP address, Netmask, Gateway etc..

  6. prafulla nayak says:

    can we tweak keyboard keys at user level. we use Redhat 5.9 64 bit workstations. For example i want Num Lock as Tab & so on…..

    Thanks in advance

  7. Deepanjan says:

    Nice one…

    Okk if some one change my ip address ,subnet mask or try to play with it can i view the trail logs or anything simillar ????

  8. nik says:

    Superb article……

  9. Mandar says:

    Great article first of all !

    This command is very much similar to “IFCONFIG”.
    “sudo ifconfig eth1 up” replaced by “sudo ip link set eth1 up”.

    That’s really cool !

  10. manoj says:

    provide tips for gcov and lcov in linux

    • Ravi Saive says:

      Never heard about these tools, but we do try our best to provide you an how-to soon. Please stay updated..

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 47558
  2. 2150
  3. 11343

Enter your email to get latest Linux Howto's