To modify a persistent connection using the `nmcli` command-line tool, follow these steps: \n\n1. Open a terminal window. \n\n2. List all the available connections and find the connection you want to modify by running the following command: \n \n nmcli connection show\n \n\n3. Identify the connection name or UUID that you want to modify. \n\n4. Use the `nmcli conn modify` command along with the connection name or UUID to modify the connection. For example, if the connection name is 'MyConnection', run the following command: \n \n sudo nmcli conn modify MyConnection <options>\n \n\n Replace <options>\ with the specific parameters you want to modify. Some commonly used options include: \n - `connection.autoconnect yes|no` to enable or disable automatic connection. \n - `ipv4.method manual|auto` to set the IPv4 addressing method. \n - `ipv4.addresses IP_ADDRESS[/PREFIX]` to set the IPv4 address and subnet mask. \n - `ipv4.gateway IP_ADDRESS` to set the IPv4 gateway. \n - `ipv4.dns IP_ADDRESS1 IP_ADDRESS2` to set the IPv4 DNS servers. \n\n You can modify other options as per your requirement. Refer to the `nmcli` manual for more details on available options. \n\n5. After modifying the connection, save the changes by running the following command: \n \n sudo nmcli conn up MyConnection\n \n\n Replace 'MyConnection' with the actual connection name or UUID. \n\nNote: The `nmcli` commands require superuser privileges, so you may need to prefix them with `sudo`. \n\nBy following these steps, you can successfully modify a persistent connection using `nmcli`.'}

Modify Persistent Network Connections with nmcli - A Step-by-Step Guide