ifconfig vs ip: What’s Difference and Comparing Network Configuration

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.

Gunjit Khera

Currently a Computer Science student and a geek when it comes to Operating System and its concepts. Have 1+ years of experience in Linux and currently doing a research on its internals along with developing applications for Linux on python and C.

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

8 Responses

  1. manju says:

    How to collect the netmask information. ifconfig gives us, but IP command not providing any data. How to retrieve it?

  2. Tim Hothersall says:

    To me it is change for its own sake; I have enough to learn without continually using different commands to do the same thing. I really think that some devs should go find something better to do (and preferably not go working with the systemd team).

  3. Yves says:

    ifconfig is deprecated. It is a bad idea.

    ifconfig is simple and for most of usage it did the job. Set a ip address, show the config. Idem for route command.

    ip is more powerful, yes. For advanced configuration, it is good.

    My opinion, we need ifconfig/route and ip together.

  4. Dennis TheBald says:

    nice article.
    I believe that Centos 7 no longer includes ifconfig, at least in the minimum distro, FWIW.

  5. Pat Callahan says:

    Hi Gunjit,

    I’m an Ubuntu users who is trying to connect a Raspberry Pi zero via usb.

    I’m having a bit of trouble understanding what is needed, but have taken the following steps:

    1. Removed Network Manager entirely
    2. Configured an internet connection in /etc/networking/interfaces:

    $cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    auto enp3s0
    iface enp3s0 inet static

    Plugged in my raspberry pi zero to a USB3.0 port on my Ubuntu machine

    $ ip a
    1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: enp3s0:  mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 94:de:80:6d:24:2c brd ff:ff:ff:ff:ff:ff
        inet brd scope global enp3s0
           valid_lft forever preferred_lft forever
        inet6 fe80::96de:80ff:fe6d:242c/64 scope link 
           valid_lft forever preferred_lft forever
    3: eno1:  mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether 94:de:80:6d:24:1c brd ff:ff:ff:ff:ff:ff
    19: enp0s20u10u1:  mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 6e:f1:fa:0c:79:d8 brd ff:ff:ff:ff:ff:ff
        inet6 fe80::6cf1:faff:fe0c:79d8/64 scope link 
           valid_lft forever preferred_lft forever

    The Pi has hostname pizero0
    Since DHCP is not running on the Ubuntu machine raspberry pi’s ip address is probably 169.254.xxx.xxx

    Ubuntu log contains
    Jan 1 21:26:45 spinnaker-s kernel: [21935.862587] cdc_ether 3-10.1:1.0 enp0s20u10u1: kevent 12 may have been dropped
    Jan 1 21:26:45 spinnaker-s kernel: [21935.917233] cdc_ether 3-10.1:1.0 enp0s20u10u1: kevent 11 may have been dropped

    I am working to try to understand this situation so I can write a complete guide to getting the pi-zero working with usb on ubuntu.

    Any advice on how to proceed would be welcome

  6. fatboy92 says:

    Well, where ipconfig delivered all necessary information in one look, ip makes it a mess. when setting a parameter on an interface the command is “set” and of course I tried “get” to get information, but no, it’s “show”. Nope, I will keep using ipconfig as long as it exist.

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.