nmcli networking Command Examples

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
Related Post