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

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.

Host Your Own Website at $97 Discount + One Free Domain Using our Promo Code 'Tec97' (Enter this code during Signup) - Signup with DreamHost 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...

12 Responses

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

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

  3. Manolo Baclig says:

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

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

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

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

  7. test says:

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

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

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. 48100
  2. 2222
  3. 11697
Enter your email to get latest Linux Howto's