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

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.

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

4 Responses

  1. 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
    address 192.168.1.35
    gateway 192.168.1.1
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    

    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 127.0.0.1/8 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 192.168.1.35/24 brd 192.168.1.255 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

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

  3. siva says:

    Good Post.

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 257,757
  2. 11,967
  3. 39,682

Are you subscribed?