Skip to content

Commit

Permalink
Fixed feedbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
harneshalaka committed Dec 19, 2024
1 parent e662b5a commit dde89c8
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 135 deletions.
13 changes: 5 additions & 8 deletions articles/SLES-networkmanager-nmcli.asm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
<resource xml:id="_networkmanager-nmcli-start" href="../tasks/networkmanager-nmcli-start.xml">
<description>You can start &nm; to manage network connections and devices.</description>
</resource>
<resource xml:id="_networkmanager-nmcli-modify" href="../tasks/networkmanager-nmcli-modify.xml">
<description>You can use the nmcli command to modify network connections.</description>
</resource>
<resource xml:id="_networkmanager-nmcli-enabledisable" href="../tasks/networkmanager-nmcli-enabledisable.xml">
<description>You can enable and disable &nm; using <command>nmcli</command> command.</description>
</resource>
Expand All @@ -67,11 +64,11 @@
</resource>
</resources>
<!-- References -->
<!--<resources>
<resource xml:id="_reference-example" href="../references/reference.xml">
<description>Reference example</description>
<resources>
<resource xml:id="_networkmanager-nm-modify" href="../references/networkmanager-nm-modify.xml">
<description>You can use the nmcli command to modify network connections.</description>
</resource>
</resources>-->
</resources>
<!-- Legal -->
<resources>
<resource href="../common/legal.xml" xml:id="_legal">
Expand Down Expand Up @@ -204,7 +201,7 @@
<module resourceref="_networkmanager-nmcli-start" renderas="section"/>
<module resourceref="networkmanager-nmcli-conf-nwbehavior" renderas="section"/>
<module resourceref="_networkmanager-nmcli-configure" renderas="section"/>
<module resourceref="_networkmanager-nmcli-modify" renderas="section"/>
<module resourceref="_networkmanager-nm-modify" renderas="section"/>
<module resourceref="_networkmanager-nmcli-enabledisable" renderas="section"/>
<module resourceref="_networkmanager-nmcli-monitor" renderas="section"/>
<module resourceref="_networkmanager-nmcli-logging" renderas="section"/>
Expand Down
118 changes: 118 additions & 0 deletions references/networkmanager-nm-modify.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="networkmanager-nm-modify"
role="reference" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Modifying Network Connection</title>
<!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract>
<!-- can be changed via merge in the assembly -->
<para>You can use the <command>nmcli connection modify</command> command to modify network connections.</para>
<para>
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 <command>nmcli connection modify</command> command.
</para>
</abstract>
</info>
<section xml:id="sec-networkmanager-modify-connections">
<title>Modify Network Connections</title>
<para>You can use the following commands to modify network connections.</para>
<variablelist>
<varlistentry>
<term>View the list of connections</term>
<listitem>
<para>
<command>nmcli connection modify</command> to view the list of available active network connections appear with the names and UUIDs.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>View the list of all network interfaces</term>
<listitem>
<para>
<command>nmcli monitor</command>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Modify a connection</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> <replaceable>PROPERTY</replaceable> <replaceable>VALUE</replaceable></command></para>
<para>Or</para>
<para><command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> ipv4.method manual
</command></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Set DNS servers</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> ipv4.dns "8.8.8.8 8.8.4.4"</command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Set gateway</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> ipv4.gateway <replaceable>GATEWAY-IP</replaceable></command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Change connection name</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>OLD-CONNECTION-NAME</replaceable> connection.id <replaceable>NEW-CONNECTION-NAME</replaceable></command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Modify the Wi-Fi SSID</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> 802-11-wireless.ssid <replaceable>NEW-SSID</replaceable></command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Enable autoconnect</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> connection.autoconnect yes</command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Disable autoconnect</term>
<listitem>
<para>
<command>nmcli connection modify <replaceable>CONNECTION-NAME</replaceable> connection.autoconnect no</command>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Apply the changes, bring the network connection down and then up</term>
<listitem>
<para>
<command>nmcli connection down <replaceable>CONNECTION-NAME</replaceable>
nmcli connection up <replaceable>CONNECTION-NAME</replaceable></command>
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</topic>
72 changes: 72 additions & 0 deletions references/networkmanager-nm-monitor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="networkmanager-nm-monitor"
role="reference" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Monitoring Network Connection</title>
<!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract><!-- can be changed via merge in the assembly -->
<para>
You use the <command>nmcli</command> command to view the status, activity and details of network connections managed by &nm;.</para>
</abstract>
</info>
<section xml:id="sec-networkmanager-modify-connections">
<title>Monitor Network Connections</title>
<para>You can use the following commands to monitor network connections.</para>
<variablelist>
<varlistentry>
<term>View the list of available active connections</term>
<listitem>
<para><command>nmcli connection show --active</command></para></listitem>
</varlistentry>
<varlistentry>
<term>View the status of all network interfaces</term>
<listitem>
<para>
<command>nmcli monitor</command>.</para>
<para>The real-time updates about the network states and connections appear.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>View details of a specific network connection</term>
<listitem>
<para>
<command>nmcli connection show <replaceable>CONNECTION-NAME</replaceable></command></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Monitor the status of network devices</term>
<listitem>
<para>
<command>nmcli device</command>
</para>
<para>The list of all network devices with device name, type, state and connection name appears.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>View the signal strength of Wi-Fi connections</term>
<listitem>
<para>
<command>nmcli device wifi list</command>
</para>
<para>The list of available Wi-Fi networks with SSID, signal strength % and security type appears.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</topic>
2 changes: 1 addition & 1 deletion tasks/networkmanager-nmcli-install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Installing and Configuring &nm;</title><!-- can be changed via merge
<title>Installing &nm;</title><!-- can be changed via merge
in the assembly -->
<!-- add author's e-mail -->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
Expand Down
69 changes: 0 additions & 69 deletions tasks/networkmanager-nmcli-modify.xml

This file was deleted.

57 changes: 0 additions & 57 deletions tasks/networkmanager-nmcli-monitor.xml

This file was deleted.

0 comments on commit dde89c8

Please sign in to comment.