nmcli

Jerry Geis jerry.geis at gmail.com
Fri Aug 12 18:36:04 UTC 2022


When I use nmcli to set a system for DHCP I use this

nmcli connection modify "$NETWORK_MANAGER_NAME" ipv4.method auto
ipv6.method ignore autoconnect yes

When I set for static I use this:
nmcli connection modify "$NETWORK_MANAGER_NAME" ipv4.method manual
ipv6.method ignore autoconnect yes ipv4.addr \
                        $IPADDRESS/$SUBNET_MASK gw4 $GATEWAY ipv4.dns $DNS

My issue is when I set DHCP it works, when I set static it works, when I
change BACK to DHCP the static address remains in the Wired Connection 1
file for network manager. The method is set to auto - but the static and
DNS are still in there and messing things up .

What is the correct command or correct option to clear that stuff out ???

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220812/2ad3a4c5/attachment.html>


More information about the ubuntu-users mailing list