15 Useful “ifconfig” Commands to Configure Network Interface in Linux

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

13 Responses

  1. swati sharma says:

    The network commands defines numerous tools, which can be helpful when networking with further computer systems inside both the network & cross ways the Internet, attaining additional detail about further computer systems.

  2. Ikkin says:

    Can you tell me how to presist ifconfig changes after reboot? I am trying to change broadcast and netmask with ifconfig. It changes successfully but after reboot it revert back to previous settings.

    Thanks in Advance,

    • Ravi Saive says:

      How you changing the network settings? directly on the command line? if yes, then settings will be for temporary only. Better add the settings in ifcfg file under network-scripts directory, if you are using Centos distro..

  3. mike says:

    I have two interfaces and after ifconfig command, two interfaces show same inet address (this probably i guess I made forwarding command in iptables in firewall ), and interrupt shows read “Interrupt” as shown in example above. I dont know why interrupt is indicated and also I could connect internet. I suspect the fox browser contaminated by some hacks . What to do now, Do I need reinstall fox.

  4. Manolo Baclig says:

    how about editing /etc/sysconfig/network-scripts/***interface-name***

  5. Allan says:

    I can’t reply to some emails because of an IPconfig error message and have to copy the email address into a compose document

  6. hamid says:


    in my iptables (centos 5) i use ! command

    after install new version of centos6.3 i get error that is deprecated command

    plz help me whats is instead this

  7. mansoor says:

    Download Your Free eBook NOW – A Newbie’s Getting Started Guide to Linux
    I can’t download this, as it asking telephone number belongs to US to download the book, what ever number i give its shows error

  8. test says:

    How to know which is primary interface, if more than one interface is configured?

  9. Anon says:

    Hasn’t ifconfig been deprecated for awhile now?

    • DavidD says:

      It has, in favor of the “ip” command.

    • RoseHosting says:

      yes ‘ifconfig (net-tools)’ has been deprecated for a while now.. There is the drop-in replacement ‘iproute2’.

      however, many systems still have ‘ifconfig’, it is still used by many folks even though ‘ip’ is much more powerful as it nicely manages the networking tasks. It has the functionality of the tools like ‘ifconfig’, ‘iptunel’, ‘route’ etc…

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