Book Image

Learning RHEL Networking

By : Andrew Mallett, Adam Miller
Book Image

Learning RHEL Networking

By: Andrew Mallett, Adam Miller

Overview of this book

Table of Contents (18 chapters)
Learning RHEL Networking
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Extreme interaction with NetworkManager using nmcli


For those who believe that the only true form of Linux is without the aid of menus, using solely the wisdom handed down to you through your Jedi parentage, we have the extreme sport of nmcli. Joking aside, working with the NetworkManager in this way, without interaction of menus, will allow you to make changes in scripts, which can then be implemented across many systems.

As a simple starter, we can use nmcli to scan for available Wi-Fi networks; the output should show you the Wi-Fi SSID and strength as follows:

$ nmcli device wifi list

This procedure is greatly simplified compared to the traditional command-line mechanism we have used before to display SSIDs with the iw command:

$ sudo iw wlp12s0 scan | grep SSID
        SSID: hobbit
        SSID: virginmedia1671684
        SSID: VM260970-2G
        SSID: virginmedia9066074
        SSID: Edinburgh2013
        SSID: TALKTALK-4C89F0

The process with nmcli is simplified for us, as the NetworkManager...