Friday, 9 February 2018

Linux from the command line -- managing network connections with ifconfig & nmcli

Linux from the command line -- managing network connections with ifconfig & nmcli

Once most Linux distros switched to NetworkManager, they left sysadmins hanging by not having a command line interface to control your networks! Fortunately this outrage was eventually rectified with the release of nmcli. Know that like many of these modern Linux tools, the command syntax is convoluted and not easy to learn, remember or use. Hopefully this will help.
ifconfig on the other hand is a classic tool and one you really need to learn because it's standard across all(most?) *NIX like systems. The syntax is fairly standard and easy to use. There's a push to replace it (for some damned unknown reason) with IP which has less useful output and more difficult syntax. Frankly I doubt IP will ever replace ifconfig and I'd learn ifconfig and ignore IP.
http://linuxtechlab.com/managing-network-using-ifconfig-nmcli-commands/

1 comment:

  1. Paul Hummel Heh, yeah.
    It also makes you appreciate bash history search too given how ridiculous the nmcli commands are.

    ReplyDelete