• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nmcli networking Command Examples

by Deepika

nmcli is a command line tool that provides a way to manage and control the NetworkManager service on a Linux system. The nmcli networking command is used to manage the overall status of network connections and network-related services, including enabling or disabling network connections, setting up network connections, and modifying network configuration details.

Some common tasks performed using the nmcli networking command include:

  • Turning on or off the NetworkManager service: nmcli networking on or nmcli networking off
  • Enabling or disabling specific network connections: nmcli con up id [connection-name] or nmcli con down id [connection-name]
  • Viewing the status of all network connections: nmcli con show
  • Displaying detailed information about a specific connection: nmcli con show id [connection-name]
  • Modifying the configuration of a network connection: nmcli con modify id [connection-name] [property] [value]

In general, nmcli networking provides an easy-to-use and flexible way to manage network connections and settings, making it a powerful tool for network administrators and system administrators.

nmcli networking Command Examples

1. Show the networking status of NetworkManager:

# nmcli networking

2. Enable or disable networking and all interfaces managed by NetworkManager:

# nmcli networking [on|off]

3. Show the last known connectivity state:

# nmcli networking connectivity

4. Show the current connectivity state:

# nmcli networking connectivity check

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to configure DM-Multipath from an iSCSI initiator to an iSCSI target in CentOS / RHEL
  2. boot: Build tooling for the Clojure programming language
  3. How to Delete unnecessary Entry in /etc/shadow
  4. dconf Command Examples (Cheat Sheet)
  5. Understanding Samba utilities – nmblookup, smbstatus, smbtar, testparm, wbinfo, smbget
  6. top Command Examples in Linux
  7. CentOS / RHEL : anacron basics (What is anacron and how to configure it)
  8. printk and console log level
  9. setenforce: command not found
  10. rpmspec Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright