10 Useful “IP” Commands to Configure Network Interfaces

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.

Ravi Saive

I am Ravi Saive, creator of TecMint. 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. Follow Me: Twitter, Facebook and Google+

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

35 Responses

  1. BionicBeaver says:

    Calm down. Netplan is not in charge yet here, in Ubuntu 18 bionic beaver desktop. We may also run into trouble with resolvconf.

    grep ‘^ *renderer: *NetworkManager’ /etc/netplan/01-network-manager-all.yaml && {
    [do stuff]
    } || echo netplan has superseded NetworkManager here\, \”man netplan\”

  2. Eugene says:

    Your info is deprecated. For example:

    $ cat /etc/network/interfaces
    # ifupdown has been replaced by netplan(5) on this system.  Do not edit.
    

    There is netplan in Ubuntu now.

    To add permanent Static route, edit file /etc/sysconfig file. There is no /etc/sysconfig directory at all.

    And so on.

    • Colin says:

      Do you know why Ubuntu has implemented netplan? Is it across all Debian distro’s?

      We are quite rapidly heading towards 2 distinct branches of Linux; RH based for enterprise, and Ubuntu/Debian for developers.

      • Eugene says:

        I think you should ask Canonical about this but not me. I’m usually remove this and configuring network by networkd.

    • BionicBeaver says:

      September 9, 2018, Ubuntu bionic beaver desktop, netplan is not in charge here:

      grep ‘^ *renderer: *NetworkManager’ /etc/netplan/01-network-manager-all.yaml && {
      sudo /etc/init.d/networking stop
      sudo ip addr add 192.168.1.1/24 dev $eth1

      } || echo netplan may be in charge\, \”man netplan\”

  3. Saniss ElMehdi says:

    A big thank’s

  4. Cyberat says:

    Problem with setting static IP.

    Done static route through GUI and on reboot I get no WAN. Also my “eth0” shows up as “enp2s0” not sure how it got that way. (wired only, wireless off, set IPv6 as Link Local Only) Does Linux Mint 18.3 require IPv6 to connect to WAN ? The only way to restore my network is set to Auto DHCP and restart.

  5. Colin says:

    Thank you .

    Your process was clean and tidy and it worked.

    May I ask: I have taken over a slightly mis-configured system in my new position, and found some ifcfg-*** files that have quotation marks around some of the parameters.

    I am wondering if these quotes have an affect on the system, or if they are simply one persons preference?

    Please see below:

    TYPE="Ethernet"
    BOOTPROTO="none"
    DEVICE="eno50"
    ONBOOT="yes"
    MASTER=bond0
    SLAVE=yes
    

    I don’t find any problem with the quotes but wonder why they are there.

    Thanks

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.