If you want to use a command line or a script:I found the documentation bad as it does not show what you have to use and what is optional or what happens when you leave out the optional.
nmtui works for some things and not for others. nmcli does more. I use nmcli in scripts for easy to repeat changes across machines. NM uses its own version of dnsmasq so those configuration files have to be in the NM directory and neither nmcli or nmtui allows the type of config I need in dnsmasq.
Code:
nmcli connection modify "Wired connection 1" ipv4.addresses '192.168.0.10/24'
nmtui works for some things and not for others. nmcli does more. I use nmcli in scripts for easy to repeat changes across machines. NM uses its own version of dnsmasq so those configuration files have to be in the NM directory and neither nmcli or nmtui allows the type of config I need in dnsmasq.
Statistics: Posted by peterlite — Tue Jul 09, 2024 6:34 am