diff --git a/articles/SLES-networkmanager-nmcli.asm.xml b/articles/SLES-networkmanager-nmcli.asm.xml index cccb4924b..3fc2516a1 100644 --- a/articles/SLES-networkmanager-nmcli.asm.xml +++ b/articles/SLES-networkmanager-nmcli.asm.xml @@ -50,9 +50,6 @@ You can start &nm; to manage network connections and devices. - - You can use the nmcli command to modify network connections. - You can enable and disable &nm; using nmcli command. @@ -67,11 +64,11 @@ - + @@ -204,7 +201,7 @@ - + diff --git a/references/networkmanager-nm-modify.xml b/references/networkmanager-nm-modify.xml new file mode 100644 index 000000000..26546cc5a --- /dev/null +++ b/references/networkmanager-nm-modify.xml @@ -0,0 +1,118 @@ + + + %entities; +]> + + + + + + + Modifying Network Connection + + + + + + You can use the nmcli connection modify command to modify network connections. + + You can set a static IP address, DNS server, Gateway, change connection name, change Wi-Fi SSID for Wi-Fi connections, and enable or disable autoconnect using the nmcli connection modify command. + + + +
+ Modify Network Connections + You can use the following commands to modify network connections. + + + View the list of connections + + + nmcli connection modify to view the list of available active network connections appear with the names and UUIDs. + + + + View the list of all network interfaces + + + nmcli monitor. + + + + Modify a connection + + + nmcli connection modify CONNECTION-NAME PROPERTY VALUE + Or + nmcli connection modify CONNECTION-NAME ipv4.method manual + + + + + Set DNS servers + + + nmcli connection modify CONNECTION-NAME ipv4.dns "8.8.8.8 8.8.4.4" + + + + + Set gateway + + + nmcli connection modify CONNECTION-NAME ipv4.gateway GATEWAY-IP + + + + + Change connection name + + + nmcli connection modify OLD-CONNECTION-NAME connection.id NEW-CONNECTION-NAME + + + + + Modify the Wi-Fi SSID + + + nmcli connection modify CONNECTION-NAME 802-11-wireless.ssid NEW-SSID + + + + + Enable autoconnect + + + nmcli connection modify CONNECTION-NAME connection.autoconnect yes + + + + + Disable autoconnect + + + nmcli connection modify CONNECTION-NAME connection.autoconnect no + + + + + Apply the changes, bring the network connection down and then up + + + nmcli connection down CONNECTION-NAME +nmcli connection up CONNECTION-NAME + + + + +
+
diff --git a/references/networkmanager-nm-monitor.xml b/references/networkmanager-nm-monitor.xml new file mode 100644 index 000000000..1d9c81844 --- /dev/null +++ b/references/networkmanager-nm-monitor.xml @@ -0,0 +1,72 @@ + + + %entities; +]> + + + + + + + Monitoring Network Connection + + + + + + You use the nmcli command to view the status, activity and details of network connections managed by &nm;. + + +
+ Monitor Network Connections + You can use the following commands to monitor network connections. + + + View the list of available active connections + + nmcli connection show --active + + + View the status of all network interfaces + + + nmcli monitor. + The real-time updates about the network states and connections appear. + + + + View details of a specific network connection + + + nmcli connection show CONNECTION-NAME + + + + Monitor the status of network devices + + + nmcli device + + The list of all network devices with device name, type, state and connection name appears. + + + + View the signal strength of Wi-Fi connections + + + nmcli device wifi list + + The list of available Wi-Fi networks with SSID, signal strength % and security type appears. + + + +
+
diff --git a/tasks/networkmanager-nmcli-install.xml b/tasks/networkmanager-nmcli-install.xml index 362a95fce..cf167a0ac 100644 --- a/tasks/networkmanager-nmcli-install.xml +++ b/tasks/networkmanager-nmcli-install.xml @@ -16,7 +16,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:trans="http://docbook.org/ns/transclusion"> - Installing and Configuring &nm; diff --git a/tasks/networkmanager-nmcli-modify.xml b/tasks/networkmanager-nmcli-modify.xml deleted file mode 100644 index 49013cf8b..000000000 --- a/tasks/networkmanager-nmcli-modify.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - %entities; -]> - - - - - - - Modifying Network Connection - - - - You can use the nmcli connection modify command to modify network connections. - - You can set a static IP address, DNS server, Gateway, change connection name, change Wi-Fi SSID for Wi-Fi connections, and enable or disable autoconnect using the nmcli connection modify command. - - - -View the list of connections: - - nmcli connection modify - The list of available active network connections appear with the names and UUIDs. - - View the status of all network interfaces: - nmcli monitor - -Modify a connection: -nmcli connection modify CONNECTION-NAME PROPERTY VALUE -Set a static IP address: -nmcli connection modify CONNECTION-NAME ipv4.addresses IP-ADDRESS/PREFIX-LENGTH -nmcli connection modify CONNECTION-NAME ipv4.method manual - - -Set DNS servers: -nmcli connection modify CONNECTION-NAME ipv4.dns "8.8.8.8 8.8.4.4" -Set gateway: -nmcli connection modify CONNECTION-NAME ipv4.gateway GATEWAY-IP -Change connection name: -nmcli connection modify OLD-CONNECTION-NAME connection.id NEW-CONNECTION-NAME - - -Modify the Wi-Fi SSID: -nmcli connection modify CONNECTION-NAME 802-11-wireless.ssid NEW-SSID - - -To enable autoconnect: -nmcli connection modify CONNECTION-NAME connection.autoconnect yes -To disable autoconnect: - nmcli connection modify CONNECTION-NAME connection.autoconnect no - - - -To apply the changes, bring the network connection down and then up: -nmcli connection down CONNECTION-NAME -nmcli connection up CONNECTION-NAME - - - \ No newline at end of file diff --git a/tasks/networkmanager-nmcli-monitor.xml b/tasks/networkmanager-nmcli-monitor.xml deleted file mode 100644 index 3d2b9ace3..000000000 --- a/tasks/networkmanager-nmcli-monitor.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - %entities; -]> - - - - - - - Monitoring Network Connection - - - - - You use the nmcli command to view the status, activity and details of network connections managed by &nm;. - - - Monitor &nm; View the list of available active connections: - - nmcli connection show --active - The list of available active network connections appear with the names and UUIDs. - - - - - - - View the status of all network interfaces: - nmcli monitor - The real-time updates about the network states and connections appear. - - - View details of a specific network connection: - nmcli connection show CONNECTION-NAME - - - Monitor the status of network devices: - nmcli device - The list of all network devices with device name, type, state and connection name appears. - - - View the signal strength of Wi-Fi connections: - nmcli device wifi list - The list of available Wi-Fi networks with SSID, signal strength % and security type appears. - - - \ No newline at end of file